• 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
Predicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Predicates
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Scripting Bridge && filteredArrayUsingPredicate
  • Next by Date: MVCP (was Re: Using Bindings with C++ objects)
  • Previous by thread: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Next by thread: Re: Predicates
  • Index(es):
    • Date
    • Thread