Predicates
Predicates
- Subject: Predicates
- From: Keith Penrod <email@hidden>
- Date: Wed, 26 Dec 2007 16:59:05 -0700
So, I opened up the Abstract Tree example and that's exactly what I
want--an outline view that shows all the objects of a given entity
that have no parents, and that's exactly what Abstract Tree does and I
see that the "parent == nil" as the fetch predicate is what does that,
but I'd also like to make it searchable so that when you search for a
string that's, for example, in a third- or fourth-level child it will
display that child and any children it has, but none of its parents.
I can make it do that, but the only way I've been able to get it to
work is to remove the "parent==nil" in the fetch predicate line, so
that when the search box is empty it displays all of the objects of
that entity type, not just the ones with no parents. Any ideas on how
to eat my cake and have it too?
Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden