• 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
CoreData NSTreeController Binding Relationship Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData NSTreeController Binding Relationship Problem


  • Subject: CoreData NSTreeController Binding Relationship Problem
  • From: Chris Schmitt <email@hidden>
  • Date: Wed, 16 Jan 2008 00:03:15 -0500

Hello,
I have two core data entities, Category and Project. Category is related to Project using the "project_rel" (one to many). Project is related to Category using the "category_rel". The inverse is set for both of them. So basically I want to list all projects within a category.


I have a tree controller that is setup using the following bindings:

Object Controller:  Mode=>Entity   Entity Name=> Category
Key Paths:  Children => project_rel

Last but not least, I have a button hooked up to the add method on the NSTreeController. I have also tried the addChild method, and written my own method to programmatically add the category entity and all result in the same error. When I click the button I get the following error: the entity Category is not key value coding-compliant for the key Project

This has got me stumped and everything I find says that I have this setup correctly.

Thanks in advance





_______________________________________________

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


  • Follow-Ups:
    • Re: CoreData NSTreeController Binding Relationship Problem
      • From: William Turner <email@hidden>
  • Prev by Date: RE: Wrapping NSTask, setting PATH env var to current user's PATH...
  • Next by Date: Handle Dock menu open/close events
  • Previous by thread: Re: Wrapping NSTask, setting PATH env var to current user's PATH...
  • Next by thread: Re: CoreData NSTreeController Binding Relationship Problem
  • Index(es):
    • Date
    • Thread