Re: Zoom Button vs. windowWillResize
Re: Zoom Button vs. windowWillResize
- Subject: Re: Zoom Button vs. windowWillResize
- From: Darkshadow <email@hidden>
- Date: Tue, 6 Feb 2007 22:52:11 -0500
On Feb 6, 2007, at 8:32 PM, Mark Manes wrote:
Then came the zoom button---my plan doesn't work anymore because
when the method is called with the proposed size the window has not
been resized at all yet thus I really need to use the proposed size
to make my calculations.
The problem is--I don't see how I can tell the difference between
when the user has resized using the resize control versus using the
zoom button.
You can try testing if the window's content view is in a live
resize. i.e. [[self window] inLiveResize] That will return true
if the window is being resized normally, but false if it was resized
via the zoom button.
Darkshadow
(aka Michael Nickerson)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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