Re: CoreData & NSTreeController question
Re: CoreData & NSTreeController question
- Subject: Re: CoreData & NSTreeController question
- From: T Reaves <email@hidden>
- Date: Fri, 13 May 2005 15:59:34 -0400
On May 13, 2005, at 3:34 PM, Jim Correia wrote:
On May 13, 2005, at 3:27 PM, T Reaves wrote:
The issue I have is that because the outline is bound to a
controller of a particular type, when an instanec is added as a
child of another instance, the new object appears twice in the
outline; once as the child element of the instance added to, and
once as a top level object itself. What I want to do is limit it
to only being displayed once - at the level it was added at.
Would I use a predicate set in IB on the NSTreeController for
this?
Yes. Look at
/Developer/Examples/CoreData/OutlineEdit
since it does exactly what you want. The predicate is "parent ==
nil" but of course may differ based on your model.
Jim
Perfect! I'd forgot to check the Examples directory. It's too
bad Apple doesn't link the examples into the documentation within XCode.
thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden