How to differentiate between sources for a live resize...
How to differentiate between sources for a live resize...
- Subject: How to differentiate between sources for a live resize...
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 2 May 2006 08:34:01 -0700
I have the desire to optimize the way I do drawing in an NSView
subclass based not only on if the view is undergoing a live resize
(-[NSView inLiveResize]) but also based on the source or reason for
the live resize. I basically want to know if the live resize is a
result of the user dragging the resize widget in the lower right
corner of the window or it is a result resize animation triggered say
by something like -[NSWindow setFrame:display:animate:].
I believe I have access (in my code) to all the
setFrame:display:animate: calls so I could record some state
information (or subclass NSWindow to override setFrame: so it
maintains state, etc.)... but I wonder if better way exists that I am
just over looking.
Any suggestions on a good way to go about doing that?
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden