NSTreeController, sorry for the multiple posts!
NSTreeController, sorry for the multiple posts!
- Subject: NSTreeController, sorry for the multiple posts!
- From: Adam Hall <email@hidden>
- Date: Sat, 8 Sep 2007 02:02:37 -0400
If this message is posted THREE times, terribly sorry! I discovered
that apparently the update from last night that Apple sent out (says
it was iTunes, but I see a ton of security fixes in the log?!?),
changed the email settings to send mail from account of last viewed
mailbox or set that variable to some old and since deleted account. I
was not getting anything in my sent mail as soon as that update was
installed, and thought mail was not going out... if anyone else has
this a similar problem suddenly, you may want to check under
Composing in Mail settings, I just sent it to my actual account entry
and things are showing up as normal. To my question...
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
I have posted a screen capture of my data model, just to give an idea
of what it looks like, the link to the image is here:
http://www.foreverfamilystories.com/FlashcardModel.jpg
Best Regards,
Adam Hall
_______________________________________________
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