Re: Snapping Window Locations
Re: Snapping Window Locations
- Subject: Re: Snapping Window Locations
- From: David Remahl <email@hidden>
- Date: Tue, 18 Jun 2002 03:29:28 +0200
Look how Fire implements it! It's on sourceforge.
/ David
>
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.