• 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: Design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design question


  • Subject: Re: Design question
  • From: Michael Fey <email@hidden>
  • Date: Mon, 14 Jul 2008 22:59:17 -0400

I'd agree with what I.S. said, make sure you read up on and run through some tutorials for coding a table and its data source by hand. Aaron Hillegass does a great job of this in Cocoa Programming for Mac OS X. As a Cocoa newbie this is a great book to hit the ground running. It assumes prior programming knowledge, but starts at the basics (like table data sources) and goes right up through to the advanced. I'm not the first to recommend his book on this list and I know I won't be the last.

Regards,
     Michael


On Jul 14, 2008, at 9:35 PM, I. Savant wrote:

Does anyone have any comments on my design so far?

Overcomplicated. :-) If I were writing a quick utility to do as you're looking to do, I'd probably implement it all in a single application controller. There's no real design advantage in something with so few requirements and simple is always best.


If your project becomes more complicated (the app controller is too big to manage mentally / textually, or some parts of your controller layer need to be reusable), you can decide what to parcel out into more logical divisions. For now, though, there's nothing wrong with using a single controller and nothing to gain from using multiple ones.

Also, the general advice (with which I concur whole-heartedly) is to steer clear of Cocoa Bindings until you've masted the Cocoa Basics. That is, for your tables, try the NSTableDataSource protocol to see the nuts and bolts of tables before worrying about the more complicated Bindings machinery.

 Good luck and happy coding!

--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Design question (From: Phillip Hall <email@hidden>)
 >Re: Design question (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Questions about Core Data and SQLite
  • Next by Date: Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?
  • Previous by thread: Re: Design question
  • Next by thread: Mouse events in NSTextFieldCell
  • Index(es):
    • Date
    • Thread