• 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
FIXED: NSTreeController, sorry for the multiple posts!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FIXED: NSTreeController, sorry for the multiple posts!


  • Subject: FIXED: NSTreeController, sorry for the multiple posts!
  • From: Adam Hall <email@hidden>
  • Date: Sat, 8 Sep 2007 11:43:13 -0400

Ok, the problem was that the "children" relationships had different names!



I dropped an NSTreeController into my nib file for a small Flash Card app I decided to throw together quickly for my 3 year old to practice with. However, I am getting an error that looks to me like NSFaultingMutableSet is saying the object attribute being referred to in the children key path for my the NSTreeController is invalid. The key path is referring to a string attribute of a class which is linked to the parent through a relationship defined in the data modeler. Wow, that was a mouthful. This is a small little app that is not mission critical for some Enterprise, its not going to change the world or anything, its just for a little girl to help her with her Chinese lessons, but its more important to me than anything right now to get it running for her. :-) . I appreciate any insight into what I may be doing wrong, or perhaps a heads up about dealing with NSTreeController in this case. The data and paths do work perfectly fine with a "regular" NSArrayController/ NSTableView VS the NSTreeController/NSOutlineView. I will continue to work through the problem and if I figure it out I will post a message here, its just I never had occasion to use the NSTreeController before tonight. A little of subject - I started an IRC channel on irc.freenode.org called #coredata, I hang in there to try and help other people with Core Data as best I can. At first I thought my abilities might not be helpful, but I was able to help a guy track down a serious resource issue he was having with predicates tonight, so it was nice to feel I can help in a small way to promote Core Data, which I feel is a wonderful technology but sometimes can be difficult to get help with on IRC.


Here is the exception being thrown in my app, the children key path is set as pxrelationship_flashcard.pxattribute_name in Interface builder with the Lesson as (Entity) name:


[<_NSFaultingMutableSet 0x5d4cda0> addObserver:forKeyPath:options:context:] is not supported. Key path: pxattribute_name



_______________________________________________

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: 
 >NSTreeController, sorry for the multiple posts! (From: Adam Hall <email@hidden>)

  • Prev by Date: Re: iPhoto-like scroll view
  • Next by Date: Re: iPhoto-like scroll view
  • Previous by thread: NSTreeController, sorry for the multiple posts!
  • Next by thread: Setting Breakpoints in XCode - Comically slow
  • Index(es):
    • Date
    • Thread