• 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: Core Data for managing subtree?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data for managing subtree?


  • Subject: Re: Core Data for managing subtree?
  • From: "Hamish Allan" <email@hidden>
  • Date: Wed, 16 Apr 2008 01:31:01 +0100

Further info (sorry for the reply to myself):

Having taken approach (2), if I dump [myTreeController contents], they
are ostensibly correct (e.g. having added a couple of items):

2008-04-16 01:56:55.558 Test[4187:10b] content (
        {
        children =         (
            <ItemMO: 0x1c3230> (entity: Item; id: 0x117300
<x-coredata:///Item/tA3238BAD-C1F4-4A8F-BA23-C7F030652BAA2> ; data: {
    displayName = "item 1";
}),
            <ItemMO: 0x1c20c0> (entity: Item; id: 0x1c2100
<x-coredata:///Item/tA3238BAD-C1F4-4A8F-BA23-C7F030652BAA3> ; data: {
    displayName = "item 2";
})
        );
        displayName = SECTION;
        isLeaf = 0;
    }
)

The section name "SECTION" displays correctly in the source list
outline view. However, the tree controller does not seem to observe
the content's "children". If I add another child through the
NSTreeController, thereby forcing an update, the managed objects
subsequently appear in the source list.

How can I make the tree controller observe changes to this "children"
key? Is it failing because the key value does not exist in its own
right, but is bound to another?

Thanks,
Hamish
_______________________________________________

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

  • Follow-Ups:
    • Re: Core Data for managing subtree?
      • From: "Hamish Allan" <email@hidden>
References: 
 >Re: Core Data for managing subtree? (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: Memory leak when re-alloc Methods
  • Next by Date: Resizing NSView with CABasicAnimation
  • Previous by thread: Re: Core Data for managing subtree?
  • Next by thread: Re: Core Data for managing subtree?
  • Index(es):
    • Date
    • Thread