I'm hoping this is simple, but everything I read makes it seem much more complicated than I think it should be.

I have this simple model: 
http://img.skitch.com/20080317-8wxj68njnsek652bnwaahm3t5b.png

In IB I instantiated an NSTreeController bound to the application delegate with a path of managedObjectContext. I set the entity to Course, checked 'Prepares Content' and added a key path for Children to 'sections'.

I can add courses, sections, and coursefiles, and the outlineview seems to recognize that the Course contains a Section, but it tells me that the entity Section is not kvc compliant for the key sections: http://img.skitch.com/20080317-qkmratwtpkfqx47rhqrtey4nqy.png

I've noted in the docs that:
"All child objects for the tree must be key-value-coding compliant for the same child key path. If necessary you should implement accessor methods in your model classes, or categories on those classes, that map the child key to the appropriate class-specific method name."

I have set up NSManagedObject subclasses for each of my model objects. However, I am not able to find an example of which accessor methods I should add to map the children....

Any help would be much appreciated, I've been struggling with this for days.

Thanks in advance,
Ian Kennedy
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to