Re: Detecting a resize window event?
Re: Detecting a resize window event?
- Subject: Re: Detecting a resize window event?
- From: Graham Reitz <email@hidden>
- Date: Sun, 25 May 2008 18:13:11 -0500
Thanks Greg.
I would like to dispatch a message to a C++ controller letting it know
that the window has been resized to x,y dimensions.
graham
On May 25, 2008, at 6:09 PM, Greg Titus wrote:
Assuming you are asking because you need to do drawing differently
based on whether resizing is taking place, see here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaPerformance/Articles/CocoaLiveResize.html
You'll want to override the -viewWillStartLiveResize and -
viewDidEndLiveResize methods.
Hope this helps,
- Greg
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