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.

On Feb 13, 2009, at 2:31 PM, Jean-Daniel Dupas wrote:

Le 13 févr. 09 à 20:15, Ken Thomases a écrit :

On Feb 13, 2009, at 1:06 PM, Anthony Smith wrote:

I'm surprised there isn't a maxZoomSize or something. This doesn't look like it deals with zoom just resizing in general. I'm new to Mac development so I could just be missing something. Thanks for the input!

You want the -windowWillUseStandardFrame:defaultFrame: delegate method. Its return value is the "best" size for the window.


I don't understand what you mean by "zoom size", but If you're looking for a max window size, you can set it in IB, in the size settings, or using the -[NSWindow setMaxSize:]



_______________________________________________

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