• 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, which controller class to use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design question, which controller class to use


  • Subject: Re: Design question, which controller class to use
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 21 Jul 2008 14:18:46 -0500

On Jul 20, 2008, at 10:24 PM, Jens Alfke wrote:

On 20 Jul '08, at 8:05 PM, James W. Walker wrote:

Since there is a window (which has a title that depends on the data) I thought I should use a subclass of NSWindowController. On the other hand, there is an array being displayed in a table, and I gather that's easier to set up using bindings if I use an NSArrayController. Any suggestions or references?

Those are two very different types of controllers, and you should probably use both.

Just to add to that: Apple's terminology for these different types are "coordinating controller" and "mediating controller". You should do a full-text documentation search for those terms and read the discussion you find there. It will help you understand the concepts.


Cheers,
Ken

_______________________________________________

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, which controller class to use (From: "James W. Walker" <email@hidden>)
 >Re: Design question, which controller class to use (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Handling key equivalents in a controller class?
  • Next by Date: Re: Avoiding mutual retain cycles
  • Previous by thread: Re: Design question, which controller class to use
  • Next by thread: Re: Design question, which controller class to use
  • Index(es):
    • Date
    • Thread