Re: Sorry for another NEWBIE question
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.