• 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: Scott Anguish <email@hidden>
  • Date: Sun, 1 Aug 2004 02:35:59 -0400

if it's only the size of the source code file, consider breaking it up into multiple files.

create a single header file

MyClass.h

declare the class there, and it's variables. then add a category for each of the separate files, with all the declarations in that single header.

it allows you to break it up into manageable chunks more easily.


On Jul 31, 2004, at 9:44 PM, Koen van der Drift wrote:

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?
_______________________________________________
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.


  • Follow-Ups:
    • Re: One nib and controller per tab ?
      • From: Koen van der Drift <email@hidden>
  • Prev by Date: Re: The problem with bindings
  • Next by Date: Re: cocoa app from scratch
  • Previous by thread: Re: The problem with bindings
  • Next by thread: Re: One nib and controller per tab ?
  • Index(es):
    • Date
    • Thread