Re: Core Data for managing subtree?
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