Is it possible in Cocoa to move a window by dragging an object which is inside that window?
For example: I have a webview inside a window, big as the window, so setMovableByWindowBackground will obviously not work. Is there a way to click and drag the web view and move the whole window?
Is it possible in Cocoa to move a window by dragging an object which
Share
Sure, you’ve just got to track the mouse movements using
mouseDragged. Something similar to this should work:Which I got from here: http://www.cocoadev.com/index.pl?SetMovableByWindowBackground