Re: Capture the Window resize event
Re: Capture the Window resize event
- Subject: Re: Capture the Window resize event
- From: Nathan Vander Wilt <email@hidden>
- Date: Thu, 31 Jan 2008 11:33:07 -0600 (CST)
> I am intended to write some code when the users
> resize a Window. Then
> how to accomplish this?
Looks like you can use a delegate on NSWindow to
respond to the windowWillResize:toSize: message.
In a subclass of NSView, you can use
-viewWillStartLiveResize and -viewDidEndLiveResize to
set/unset any flags or caching you would want your
-drawRect: to use. Note that these are not called when
the window is resized via the zoom button, only when
dragging the lower-right corner.
-natevw
____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
_______________________________________________
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