Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Capture the Window resize event



> 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Capture the Window resize event (From: Walter Yetta <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.