Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
how do i filter children with NSTreeController/NSOutlineView/Core Data
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
how do i filter children with NSTreeController/NSOutlineView/Core Data
Subject
:
how do i filter children with NSTreeController/NSOutlineView/Core Data
From: Ken Victor <
email@hidden
>
Date: Tue, 6 Jun 2006 15:58:46 -0700
one of my core data model entities is actually a tree; ie, each entity has a one to many relationship (parent->>children) and the child enitity has a one to one relationship (child->parent). both child and parent are the same type of entity.
using an NSOutlineView bound to a NSTreeController i can get my outline view to display properly by setting a filter predicate of "parent==nil" in IB. i can even successfully filter the top level objects by adjusting the filter predicate in IB.
but how can i filter the children? eg, consider that this entity has an attribute that can have the value of 1, 2, or 3. any parent (ie, a parent with a value of 1, 2, or 3) can have children with all values. i'd like to be able to filter the results to show only parents and children with one value (eg., 2).
can this be done? if so, how? or could someone point me to some example or documentation that explains how to do this?
thanx, ken
ps. i've done the requisite searches in the list archives and didn't find any solution (or my search query was wrong)
_______________________________________________
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
Prev by Date:
Re: changing executable name of cocoa app
Next by Date:
Re: how do i filter children with NSTreeController/NSOutlineView/Core Data
Previous by thread:
Re: changing executable name of cocoa app
Next by thread:
Re: how do i filter children with NSTreeController/NSOutlineView/Core Data
Index(es):
Date
Thread