• 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: Problem with NSTreeController, CoreData and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:33:51 +0200

Hi all,

Just solved the problem with the NSTreeController. I had to create a subclass of the Contact entity and make an accessor. I now get the right names in the NSOutlineView.

Once again, thanks alot for your help and info. It keeps me running ;)

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


References: 
 >Problem with NSTreeController, CoreData and bindings (From: Xander Maas <email@hidden>)
 >Re: Problem with NSTreeController, CoreData and bindings (From: apparao <email@hidden>)
 >Re: Problem with NSTreeController, CoreData and bindings (From: Xander Maas <email@hidden>)
 >Re: Problem with NSTreeController, CoreData and bindings (From: mmalc crawford <email@hidden>)
 >Re: Problem with NSTreeController, CoreData and bindings (From: Xander Maas <email@hidden>)

  • Prev by Date: Re: string encoding in NSMutableData
  • Next by Date: Re: minimum one entity instance on initial launch
  • Previous by thread: Re: Problem with NSTreeController, CoreData and bindings
  • Next by thread: string encoding in NSMutableData
  • Index(es):
    • Date
    • Thread