Re: NSViewController and View Swapping

2008-07-15 Thread Hamish Allan
On Mon, Jul 14, 2008 at 3:26 PM, Brad Gibbs <[EMAIL PROTECTED]> wrote: > But, that screen (with its tab view and all of the custom views to be made > available from within the tab view) is one of several screens like it. The > other tab views will contain different numbers of tabs. The user will

Re: NSViewController and View Swapping

2008-07-14 Thread Jonathan Dann
NSView has a method -replaceSubview:with: see: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#/ /apple_ref/occ/instm/NSView/replaceSubview:with: So you need to have some setup where you can keep track of you view controllers

Re: NSViewController and View Swapping

2008-07-14 Thread Brad Gibbs
OK, thanks for the tip. I think this will work well for the situation I described. But, that screen (with its tab view and all of the custom views to be made available from within the tab view) is one of several screens like it. The other tab views will contain different numbers of tabs.

Re: NSViewController and View Swapping

2008-07-14 Thread Scott Anguish
you can still do it with NSTabView use setTabViewType to one of the following NSNoTabsBezelBorder = 4, NSNoTabsLineBorder = 5, NSNoTabsNoBorder = 6 have your button actions change the visible tab using one of... - (void)selectTabViewItemAtIndex:(NSInteger)index - (void)selectTabViewItemWithId

Re: NSViewController and View Swapping

2008-07-13 Thread Brad Gibbs
Thanks for the quick response and the links. NSTabView with tabs on the bottom is exactly what I'm looking for, except, I'm writing a fullscreen app with stylized NSImage buttons, rather than tabs. I'm still looking through the ViewController sample code. Given the number of single window

Re: NSViewController and View Swapping

2008-07-13 Thread Nathan Kinsinger
On Jul 13, 2008, at 11:15 PM, Brad Gibbs wrote: I'm trying to create a Cocoa app with a single window with a number of views that get swapped in and out, using an NSViewController for each of the views. I have a series of buttons along the bottom of the UI in a custom view, and another c

NSViewController and View Swapping

2008-07-13 Thread Brad Gibbs
I'm trying to create a Cocoa app with a single window with a number of views that get swapped in and out, using an NSViewController for each of the views. I have a series of buttons along the bottom of the UI in a custom view, and another custom view above the row of buttons. When button A