Re: One nib and controller per tab ?
Re: One nib and controller per tab ?
- Subject: Re: One nib and controller per tab ?
- From: Amul Goswamy <email@hidden>
- Date: Mon, 2 Aug 2004 10:04:14 -0700
Refer to MultipleNibTabView in /Developer/Examples/InterfaceBuilder.
Establish a delegate for the tab view. Implement
tabView:didSelectTabViewItem: in the delegate. In that method you can
load in views from different nibs and assign them with [NSTabViewItem
setView:].
Amul Goswamy
Interface Builder
Apple
On Jul 31, 2004, at 6:44 PM, Koen van der Drift wrote:
Hi,
The main window of an app I work on has several tabs, but one
windowcontroller. Right now the amount of code in the windowcontroller
is starting to become large because of all the functionality in the
various tabs. So I thought about making a separate controller with its
own nib file for each tab. This makes the code for me more manageable,
and will only load the nib when a tab is actually used. Is this a
useful approach, and if so, how is this accomplished?
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.