• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: One nib and controller per tab ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: [ANN] gandbug Public Beta
  • Next by Date: Custom Field Editors
  • Previous by thread: Re: One nib and controller per tab ?
  • Next by thread: Re: NSTableView like iTunes
  • Index(es):
    • Date
    • Thread