Re: Snapping to place
Re: Snapping to place
- Subject: Re: Snapping to place
- From: Nathan Day <email@hidden>
- Date: Sat, 5 Apr 2003 17:01:37 +0930
The simplest way is to implement the method
- (void)windowDidMove:(NSNotification *)aNotification
in your window controller and then change the windows frame position
after the user as moved it. If you want to control the windows position
will the window is moving then I am pretty sure that you can only do it
with custom windows where you have to implement your own window
dragging anyway. You could try subclassing NSWindow and overriding the
method setFrame: but I think that the widow will only have it's frame
updated when moving has finished as the moving of the window is handled
by the Window Manager.
On Thursday, April 3, 2003, at 03:07 PM, Francisco Tolmasky wrote:
Hey, you know how some palettes snap to place in some apps. Like
"optimal positions". How is this done?
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.