• 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: Are there any generic controller classes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there any generic controller classes?


  • Subject: Re: Are there any generic controller classes?
  • From: Jon Hull <email@hidden>
  • Date: Sun, 2 Sep 2007 05:21:47 -0700


On Sep 2, 2007, at 1:39 AM, Andrew Farmer wrote:

On 02 Sep 07, at 00:43, Frank Bettger wrote:
I'm reading the book Cocoa Programming, by Anguish,Buck and Yacktman. It was
written in 2002. In a section discussing MVC they say that M is mature since
there is a Foundation framwork and also that V is mature since there is the
AppKit framework. However C is not mature as it could be. Here's a small
quote.


If you are creating a document-centric application, then the various classes
surrounding the NSDocument class will provide much of the controller logic
you need. Sadly, in other parts of the controller layer, Cocoa does not yet
provide much help. … There is no generic "controller framework.... The lack
of a controller framework is one area that could stand improvement. Note
that Apple does have some generic controller objects that would help.


My question is if there has been any improving in this area the last 5 years
since the book was written.

That's a rather odd statement for the book to be making. The Foundation storage classes (NS[Mutable]Array, et. al.) are only a small part of the framework, and certainly aren't a viable substitute for a model class in anything but the simplest applications. Similarly, AppKit views don't suit the needs of all applications either - they're certainly useful, but most applications will need at least one subclassed or custom view somewhere.
I would definitely like to see some more support for custom views. Especially since Apple is changing their look with every other release or so. Instead of having to make new buttons in Photoshop (to match Apple's style) it would be nice to be able to draw pieces of controls into a custom view (e.g. a beveled edge, or the pill shape for Mail's toolbar buttons (not that they should be emulated... but you get the point)).

Claiming that controllers can be prepackaged in a similar fashion is just silly. In most applications, the controllers are where much of your application's unique logic will live. These can't be written for you! _______________________________________________
What about Bindings with NSObjectController, NSArrayController, etc... ?

Thanks,
Jon_______________________________________________

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: 
 >Are there any generic controller classes? (From: "Frank Bettger" <email@hidden>)
 >Re: Are there any generic controller classes? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Next by Date: Re: Temporary files best practice?
  • Previous by thread: Re: Are there any generic controller classes?
  • Next by thread: Re: Are there any generic controller classes?
  • Index(es):
    • Date
    • Thread