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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/scottandrew%40adelphia.net

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to