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
<anthony.c.sm...@comcast.net> 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
clarkc...@gmail.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to