Zoom Button vs. windowWillResize
Zoom Button vs. windowWillResize
- Subject: Zoom Button vs. windowWillResize
- From: Mark Manes <email@hidden>
- Date: Tue, 06 Feb 2007 17:32:02 -0800
Greetings once again - I seek advice.
I implemented the windowWillResize delegate and I am using the styledWindow class that some kind person sent me to. What I want to do is properly redraw the cool gradient edges to my window when the user resizes.
I played with a lot of things and finally decided to not use the proposed size to calculate where my gradients should be as the numbers going into the proposed sizes caused my drawing update to vary wildly. Instead I used the current window size and this smoothed things out pretty nicely.
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.
I looked at and played with implementing the windowWillUseStandardFrame as that apparently gets called before windowWillResize (but not all the time) so the question is--how do you support the zoom button and is there a way to know when you're in the windowWillResize method that zoom called you? I can think of a hacky way to do it-but I'd rather not go there.
I know.. I should probably ditch the styledWindow class... and go Aqua but most people just don't think that is cool these days.
Also.. does anyone know of a good framework for doing general compression of files?
Thoughts?
-mark=
_______________________________________________
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