Re: Problem with NSTreeController, CoreData and bindings
Re: Problem with NSTreeController, CoreData and bindings
- Subject: Re: Problem with NSTreeController, CoreData and bindings
- From: Xander Maas <email@hidden>
- Date: Wed, 8 Aug 2007 22:16:37 +0200
Hi all,
Thanks for the tip, I created a relation on the Contact entity to
itself named contacts... Wish my work also was this easy......
But now I get to the point I don't have an attribute named 'name' in
this entity, but I do have this one in my Customer entity.
So one problem solved, another one comes....
When trying to solve this one, I though: heck, why don't I use some
fetched property, but that doesn't work as I don't get any error, but
I get only a pair ()s. The good point is, that I get the correct
number of lines shown :)
Regards,
Xander
On Aug 8, 2007, at 6:40 PM, Dave Fernandes wrote:
The NSOutlineView can expand/collapse a multi-level hierarchy. So
the NSTreeController will also look for a contacts relationship in
your leaf class.
"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."
Dave
On Aug 8, 2007, at 11:57 AM, Xander Maas wrote:
In my nib I have the children key path of the NSTreeController
bound to contacts, which is the relation to my other entity
(contacts)
Xander
On Aug 8, 2007, at 4:12 PM, mmalc crawford wrote:
On Aug 8, 2007, at 3:49 AM, Xander Maas wrote:
2007-08-08 12:47:29.840 Server Registration[8751]
[<NSManagedObject 0x32c0c0> valueForUndefinedKey:]: this class
is not key value coding-compliant for the key contacts.
Umm, then you've bound something expecting a property 'contacts'
to an object that doesn't have a property 'contacts'...
mmalc
_______________________________________________
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:
40utoronto.ca
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