Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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

Re: Window Max Zoom Size

2009-02-13 Thread Sean McBride
On 2/13/09 8:31 PM, Jean-Daniel Dupas said: >I don't understand what you mean by "zoom size" -- ___

Re: Window Max Zoom Size

2009-02-13 Thread Clark Cox
On Fri, Feb 13, 2009 at 11:40 AM, Anthony Smith 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: deleg

Re: Window Max Zoom Size

2009-02-13 Thread Andy Lee
On Feb 13, 2009, at 2:39 PM, Anthony Smith wrote: Sorry, I was backwards: "I'm assuming -zoom: is only called when being zoomed out and not zoomed in." I guess I would repeat my earlier question: did you look at the documentation for zoom:? Hint: look at the first sentence. --Andy

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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, Antho

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
Sorry, I was backwards: "I'm assuming -zoom: is only called when being zoomed out and not zoomed in." On Feb 13, 2009, at 2:26 PM, Anthony Smith wrote: That looks like it makes sense. I'm assuming -zoom: is only called when being zoomed in and not zoomed out. Is that correct or do I need

Re: Window Max Zoom Size

2009-02-13 Thread Jean-Daniel Dupas
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

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
That looks like it makes sense. I'm assuming -zoom: is only called when being zoomed in and not zoomed out. Is that correct or do I need to detect which way it's zooming? On Feb 13, 2009, at 2:15 PM, Ken Thomases wrote: On Feb 13, 2009, at 1:06 PM, Anthony Smith wrote: I'm surprised there

Re: Window Max Zoom Size

2009-02-13 Thread Andy Lee
Did you look closely at the docs for zoom: before overriding it? Did you try Joar's suggestion to look at NSWindow's delegate methods? What I'm getting at is... I think windowWillUseStandardFrame:defaultFrame: is what you want, though I haven't tried it myself. --Andy On Feb 13, 2009,

Re: Window Max Zoom Size

2009-02-13 Thread Ken Thomases
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 -windowWillUseSta

Re: Window Max Zoom Size

2009-02-13 Thread Anthony Smith
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! Anthony Smith On Feb 12, 2009, at 11:39 PM, John C. Randolph wrote: On Feb 12,

Re: Window Max Zoom Size

2009-02-12 Thread John C. Randolph
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote: What is the best way to set the max zoom size for NSWindow? I was able to implement a solution by overriding zoom but that feels rather invasive so I'm assuming there's probably a better way. Check the docs for -windowWillResize:toSize:. -

Re: Window Max Zoom Size

2009-02-12 Thread Joar Wingfors
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote: What is the best way to set the max zoom size for NSWindow? I was able to implement a solution by overriding zoom but that feels rather invasive so I'm assuming there's probably a better way. See the delegate methods of NSWindow. j o a r

Window Max Zoom Size

2009-02-12 Thread Anthony Smith
What is the best way to set the max zoom size for NSWindow? I was able to implement a solution by overriding zoom but that feels rather invasive so I'm assuming there's probably a better way. Thanks Anthony Smith ___ Cocoa-dev mailing list (Cocoa-