Re: Core Data for managing subtree?

2008-04-17 Thread Hamish Allan
On Wed, Apr 16, 2008 at 2:31 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > 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? FYI, I tracked this down to a bug in NSArrayCo

Re: Core Data for managing subtree?

2008-04-15 Thread Hamish Allan
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 = ( (entity: Item; id

Re: Core Data for managing subtree?

2008-04-15 Thread Hamish Allan
Ben, Thanks for your reply. On Sun, Apr 13, 2008 at 11:54 PM, Ben Trumbull <[EMAIL PROTECTED]> wrote: > If you only want only some of the tree using Core Data objects, you could > try having an array controller manage the extra entity, and wire its content > into your tree controller. Could yo

re: Core Data for managing subtree?

2008-04-13 Thread Ben Trumbull
At 6:13 PM -0700 4/8/08, [EMAIL PROTECTED] wrote: However, I would like to use Core Data to manage these items. I figure I could have my add and remove methods insert and remove objects from the managed object context as well as the KVO-compliant mutable array, but when I undo such an action, the

Core Data for managing subtree?

2008-04-08 Thread Hamish Allan
Hi, I have a source list (an NSOutlineView bound to an NSTreeController), with three sections: one containing fixed items, one dynamic items, and one items the user can add and remove (c.f. the iTunes source list sections 'Library', 'Shared' and 'Playlists'). Because my add and remove controls ar