NSTreeController, sorry for the multiple posts!

  • 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
  • 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
    >
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today