NSOutlineView with Multiple Core Data Entities

2008-07-25 Thread Garrett Bjerkhoel
I have a NSOutlineView hooked up to a NSTreeController, which has multiple entities inside of it. I would like to know how to set it up having each entity having its own "group". I have downloaded Jonathan Dann's example, which compiles but freezes. I can see how his Core Data model works,

NSOutlineView with multiple Core Data entities

2009-09-08 Thread Matthew Lindfield Seager
My goal is to have an NSOutlineView (Source List style) that contains group items at it's root with each group item corresponding to a Core Data entity type (which I'll hard code, it doesn't need to automatically adapt to new entity types). I'd then like those group items to contain leaves for ever

Re: NSOutlineView with Multiple Core Data Entities

2008-07-25 Thread Jonathan Dann
On 25 Jul 2008, at 17:21, Garrett Bjerkhoel wrote: I have a NSOutlineView hooked up to a NSTreeController, which has multiple entities inside of it. I would like to know how to set it up having each entity having its own "group". I have downloaded Jonathan Dann's example, which compiles bu

Re: NSOutlineView with Multiple Core Data Entities

2008-07-25 Thread Garrett Bjerkhoel
Here is a rough sketch of my datamodel. If you like I can take a screenshot and post a link to it. Client ---Project Todo Writeoff ---Item By each entity having its own group, I am refering to say Mail.app how it has "MAILBOXES", then "REMINDERS", or in iTunes "DEVICES", and "LIBRARY".

Re: NSOutlineView with Multiple Core Data Entities

2008-07-25 Thread Jonathan Dann
Ah yeah, that bug is intentional! The model uses an abstract TreeNode entity, which the tree controller is set to; however when you want concrete LeafNode and GroupNode entities (or sub-entities thereof) you need to create your own -add: methods so you can insert the correct entity into th

[SOLVED] Re: NSOutlineView with multiple Core Data entities

2009-09-10 Thread Matthew Lindfield Seager
On 09/09/2009, at 2:28 PM, Brent Gulanowski wrote: Here's one option. I think it's your second one. Was easier to do than to try to explain it. Plus less chance I describe it wrong. Thank you so much Brent! The combination of adding ArrayController outlets to the AppDelegate and then returning t