Re: Displaying multiple core data relationships in NSOutlineView

2009-01-17 Thread Rick Hoge
Steve, Quincy: Thank you for the replies! At the moment I'm working with a non-Core-Data class to achieve the outline view, using code adapted from the SourceView example. I am realizing that to be able to archive this and correctly maintain object graphs, I'll likely have to link the ou

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Steve Steinitz
Hi Rick, On 16/1/09, you wrote: The design I'm trying to achieve is analogous to the way Xcode displays a "Targets" group and a "Bookmarks" group in the same outline view. If Core Data was used for this (and I don't know if it was), it seems clear that Targets and Bookmarks would be mode

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 06:38, Rick Hoge wrote: I tried something like the code shown below in a custom "Project" class, for the project entity: -(NSMutableSet*)children { return [NSMutableSet setWithObjects: [self mutableSetValueForKey:@"targets"], [self mutableSetValueForKey

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Rick Hoge
Thanks Volker, why don't you have an abstract class that holds the children/parent relationships and make different subclasses for different data types that all inherit from your abstract class. As far as I understand your problem, that should solve it. I have a similar solution working

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-16 Thread Volker in Lists
Hi, why don't you have an abstract class that holds the children/parent relationships and make different subclasses for different data types that all inherit from your abstract class. As far as I understand your problem, that should solve it. I have a similar solution working well for me.