Re: Detecting a resize window event?
Re: Detecting a resize window event?
- Subject: Re: Detecting a resize window event?
- From: Scott Andrew <email@hidden>
- Date: Sun, 25 May 2008 16:14:21 -0700
For a window:
If you are registered as the delegate you can handle the
windowWillResize:toSize: call to get called just before the reisize.
Or, If you want the message after the resize, you can handle the
windowDidResize: call.
For a view:
You can register to receive the NSViewFrameDidChangeNotification
notification. This is called after the frame of the view has been
changed. I don't know of a message to track it real time.
Scott
On May 25, 2008, at 4:00 PM, Graham Reitz wrote:
How do you detect a resize event?
I can see that lockFocus and drawRect are getting called.
Is there a method to help determine if the user is resizing the
window?
thanks,
graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden