• 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: NSObjectController needless in "Intro to Bindings"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController needless in "Intro to Bindings"?


  • Subject: Re: NSObjectController needless in "Intro to Bindings"?
  • From: David Carlisle <email@hidden>
  • Date: Tue, 3 Jun 2008 22:55:14 -0600

I'm looking forward to reading the chapter "Application Kit Support for Controller Subsystems" in Erik Buck's forthcoming book "Cocoa Design Patterns" to get a clearer understanding of the use of NSObjectController, etc.

On Jun 3, 2008, at 7:59 PM, Ken Thomases wrote:

On Jun 3, 2008, at 6:25 PM, Jochen Moeller wrote:

Both versions run identical, so my question:
Are both approaches equivalent and the NSObjectController is not really needed or is there a reason/advantage to hook the NSObjectController between MyController and the NSArrayController ?

See this: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/WhatAreBindings.html#/ /apple_ref/doc/uid/20002372-177085


In short, yes, it's possible to get away with binding directly to model objects without an intervening NSController. It's often better to use such a controller, though, and the link explains why.

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

_______________________________________________

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: 
 >NSObjectController needless in "Intro to Bindings"? (From: Jochen Moeller <email@hidden>)
 >Re: NSObjectController needless in "Intro to Bindings"? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Frame rate check
  • Next by Date: totally confused by bindings settings
  • Previous by thread: Re: NSObjectController needless in "Intro to Bindings"?
  • Next by thread: Re: NSObjectController needless in "Intro to Bindings"?
  • Index(es):
    • Date
    • Thread