• 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: NSTreeNode -representedObject not KVC-Compliant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeNode -representedObject not KVC-Compliant


  • Subject: Re: NSTreeNode -representedObject not KVC-Compliant
  • From: Matt Brewer <email@hidden>
  • Date: Mon, 24 Dec 2007 03:38:41 -0500

Awesome, I'll be looking up on that. I wasn't actually using Core Data, but examples are examples!

Thanks again


On Dec 24, 2007, at 3:34 AM, Scott Anguish wrote:


On Dec 24, 2007, at 3:15 AM, Matt Brewer wrote:

Seems like I had missed this before, was just reading up on nscontroller and bindings and such, but if I added "self" as the model key path after "selection" as the controller key on the second controller, all works just fine. I don't recall running into this at all when using array controllers, but worked just fine in this master-detail use of tree controllers.

http://www.cocoabuilder.com/archive/message/cocoa/2005/5/19/136419

Hope that helps someone else out there.

Incidentally, new sample code came out today for NSTreeController, Core Data, and Bindings


http://developer.apple.com/samplecode/AbstractTree/index.html

AbstractTree is a Cocoa sample application that demonstrates how to use Core Data and Bindings with NSTreeController. The data model is intentionally simple and abstract - you can extend it to any hierarchical model suitable for your problem domain. Likewise, the user interface is minimal - just an outline view and buttons for creating and removing nodes in the tree. In addition, the project shows how to implement drag and drop for managing parent-child relationships of the Core Data content.




_______________________________________________

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: 
 >Re: NSTreeNode -representedObject not KVC-Compliant (From: Matt Brewer <email@hidden>)
 >Re: NSTreeNode -representedObject not KVC-Compliant (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: NSTreeNode -representedObject not KVC-Compliant
  • Next by Date: Re: fast enumeration puzzlement
  • Previous by thread: Re: NSTreeNode -representedObject not KVC-Compliant
  • Next by thread: Warning different width?
  • Index(es):
    • Date
    • Thread