Re: Window Max Zoom Size
Re: Window Max Zoom Size
- Subject: Re: Window Max Zoom Size
- From: Anthony Smith <email@hidden>
- Date: Fri, 13 Feb 2009 15:26:53 -0500
I have been reading the docs and I have stated that I do agree that -
windowWillUseStandardFrame:defaultFrame: is what I want. I was trying
to clarify to Jean what I meant by "zoom size" as he seemed to be
confused by it.
My question is whether I need to detect and handle the direction of
the zoom (presumably using -isZoomed:).
As per Andy's advice, the docs for -zoom: state:
"This action method toggles the size and location of the window
between its standard state (provided by the application as the “best”
size to display the window’s data) and its user state (a new size and
location the user may have set by moving or resizing the window)."
This statement seems to imply that it's smart enough to know when it
should execute -performZoom: based on the windows state.
So I think this answers my question.
Anthony Smith
On Feb 13, 2009, at 2:53 PM, Clark Cox wrote:
On Fri, Feb 13, 2009 at 11:40 AM, Anthony Smith
<email@hidden> wrote:
When a zoom is performed on a window I want to be able to specify
the width
or height it will zoom out to. Similar to Safari/WebKit's variable
zoom
size.
People have already pointed to the
-windowWillUseStandardFrame:defaultFrame: delegate method. This is
exactly what you need. Implement that method on your window's
delegate, and return the rectangle that you want to use for the zoomed
state.
You're doing yourself a disservice not reading the documentation that
many people have pointed you to so far.
--
Clark S. Cox III
email@hidden
_______________________________________________
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