Borderless window dragging

i have a window with no title bar (CustomWindow.m) and the contents of the window consist entirely of one NSImageView and thats it. i got the image view to load an image no problem, but then i cant drag the window around. i understand that, since the imageview is the only visible part, and imageviews arent made to drag the window around.

can someone help me with a script to allow for the user to drag around the entire window from the visible contents???

Greetings. Are you using the CustomWindow class that I posted, the one jonn8 posted, or some other one? If it’s the one that I posted, it should already have the two methods in it that allow dragging by the window rather than the title bar. They are…

One thing you must do is make sure that there is no object in the window that is taking focus away from the window itself. You’ll need to set the “enabled” property of your image view to false. This should allow the window to recieve the drag events rather than the image view.

j

thank you!!
i didnt relize the enabled thing at all!!

the reason im trying to do all this, is for an analog clock app i want to make. Its gonna look like any konfabulator clock, except its going o be a real app with a menu bar and all that good stuff.

so know i get my images in place…how do i do image rotation with applescript, and where do i start with this??

sorry, im a noob at applescript/cocoa