Re: Predicates
Re: Predicates
- Subject: Re: Predicates
- From: mmalc crawford <email@hidden>
- Date: Wed, 26 Dec 2007 18:16:03 -0800
On Dec 26, 2007, at 3:59 PM, Keith Penrod wrote:
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?
Put back the 'parent==nil' predicate when the search box is empty
(when there's no other predicate).
mmalc
_______________________________________________
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
References: | |
| >Predicates (From: Keith Penrod <email@hidden>) |