Snapping Window Locations
Snapping Window Locations
- Subject: Snapping Window Locations
- From: Charles Jolley <email@hidden>
- Date: Mon, 17 Jun 2002 19:09:02 -0500
Hi everyone:
I am trying to create some floating palettes using NSPanel's that should
snap to each other and to the edge of the screen, etc. The problem is
there does not seem to be anyway in NSWindow/NSPanel to intercept the
move events as the window is being moved. I tried subclassing the
various setFrame: methods but none of them appear to be called when the
window is being moved around. I have also tried using the mouseDragged:
method, but I can't figure out how to accurately calculate the new
window position. (NSWindow does not receive a mouseDown: or mouseUp:
message when the window is moved.)
Has anyone figured out how to do this? I know this question has been
posed on the list before, but I haven't found any posted solutions.
Thanks for anyone who can point me in the right direction!
Cheers,
-Charles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.