Re: Change view on resize

2009-04-10 Thread Rainer Brockerhoff
At 05:46 -0700 10/04/09, cocoa-dev-requ...@lists.apple.com wrote: >From: Graham Cox >References: <20090410073454.0145819aa2...@lists.apple.com> > <8bc5d931-c976-4670-987e-90da25217...@mac.com> >In-Reply-To: <8bc5d931-c976-4670-987e-90da25217...@mac.com> >Date: Fri, 10 Apr 2009 21:41:28 +1000

Re: Change view on resize

2009-04-10 Thread Graham Cox
On 10/04/2009, at 9:32 PM, Gregory Weston wrote: To the OP: Please put a *lot* of thought into whether you really need to do this. Despite the fact that a couple of Apple applications deviate from the semantics of the zoom button it's extremely non-standard behavior. Even if you do it well

Re: Change view on resize

2009-04-10 Thread Andy Lee
On Apr 10, 2009, at 7:32 AM, Gregory Weston wrote: Andy Lee wrote: On a side note: I notice the Basic/Scientific/Programmer menu items are not in the nib, so they must be generated programmatically at startup. I also can't find the views for these three modes in the nib, so either I'm missing

Re: Change view on resize

2009-04-10 Thread Gregory Weston
Andy Lee wrote: On a side note: I notice the Basic/Scientific/Programmer menu items are not in the nib, so they must be generated programmatically at startup. I also can't find the views for these three modes in the nib, so either I'm missing something or they are generated programmatically, wh

Re: Change view on resize

2009-04-10 Thread Andy Lee
On Apr 10, 2009, at 3:36 AM, Andy Lee wrote: which finally led me to a post by Aki Inoue. I mean Ali Ozer. --Andy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Change view on resize

2009-04-10 Thread Andy Lee
On Apr 10, 2009, at 3:30 AM, Dave Keck wrote: Wow, look at that. -setShowsResizeIndicator:. And it's been there since 10.0, dunno how I missed it. I scanned the list of NSWindow methods myself and didn't see it even though it was right there. I only found it after I'd poked around with IB

Re: Change view on resize

2009-04-10 Thread Andy Lee
On Apr 9, 2009, at 6:52 PM, Dave Keck wrote: NSButton *zoomButton = [window standardWindowButton: NSWindowZoomButton]; [zoomButton setEnabled: YES]; [zoomButton setTarget: self]; [zoomButton setAction: @selector(doFancyThings:)]; Then, when your window's zoom button is clicked, doF

Re: Change view on resize

2009-04-10 Thread Dave Keck
Wow, look at that. -setShowsResizeIndicator:. And it's been there since 10.0, dunno how I missed it. ___ 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 co

Re: Change view on resize

2009-04-10 Thread Andy Lee
On Apr 10, 2009, at 12:31 AM, Kyle Sluder wrote: On Thu, Apr 9, 2009 at 6:52 PM, Dave Keck wrote: To satisfy both these requirements, I would first disable window resizing for your window in IB. Then, somewhere in your app's initialization code, do a little something like this: Calculator.app

Re: Change view on resize

2009-04-09 Thread Kyle Sluder
On Thu, Apr 9, 2009 at 6:52 PM, Dave Keck wrote: > To satisfy both these requirements, I would first disable window > resizing for your window in IB. Then, somewhere in your app's > initialization code, do a little something like this: Calculator.app apparently does the opposite, from looking at

Re: Change view on resize

2009-04-09 Thread Dave Keck
> How do I enable the resize button without enabling drag-resize? > - Do I use windowWillResize:toSize: to be notified?  How am I notified of > the user clicking clicking the button? To satisfy both these requirements, I would first disable window resizing for your window in IB. Then, somewhere in

Change view on resize

2009-04-09 Thread Walker Argendeli
In Calculator.app, hitting the resize button lets you switch between three types of calculators. What technique could I use to implement something like this in my app? Note that I don't want the user to be able to resize the window by dragging the bottom-right corner. I know I need to us