• 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: Sorry for another NEWBIE question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorry for another NEWBIE question


  • Subject: Re: Sorry for another NEWBIE question
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 19 Nov 2003 14:05:53 -0600

On Nov 19, 2003, at 11:28 AM, Michael Becker wrote:
What should I do? Put everything in the AppController or use as many classes as possible?

Use as many classes as necessary. :)

For instance, if you're targeting Panther, you don't need an NSTableView data source. You can instead use an NSArrayController to wire your NSTableView directly to an array in your application controller.

If you're not targeting Panther, you can create a small helper class that just mediates between an array in your application controller and your NSTableView. Same with your NSBrowser. And so on.

Managing the communication between objects in your application doesn't actually make things much more complicated, and it's something you're going to have to learn anyway. To start, I suggest refactoring your code to use either an NSTableView mediator object of your own design or (if you're targeting Panther) NSArrayController.

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
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.

References: 
 >Sorry for another NEWBIE question (From: Michael Becker <email@hidden>)

  • Prev by Date: va_list error?
  • Next by Date: Re: Tunneling mouse events through windows?
  • Previous by thread: Re: Sorry for another NEWBIE question
  • Next by thread: Re: Xcode trouble with localization
  • Index(es):
    • Date
    • Thread