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

Smart Group Question


  • Subject: Smart Group Question
  • From: SA Dev <email@hidden>
  • Date: Thu, 7 Jul 2005 08:35:53 -0400


I'm implementing Smart Group functionality in a Core Data app. I have an entity called SmartGroup. It's got a name and filterPredicate attribute.


I just need some simple verification. My question is this: Can I use an NSCompoundPredicate as the arrayController's filterPredicate or does it require NSPredicate? I haven't tested this for myself because with my lack of detailed understanding, I could easily lose a day or two trying to build a test case. :-) I'm hoping someone just has the answer handy.

The docs say of NSArrayController's filterPredicate binding: "The NSPredicate instance that is used by the NSArrayController to filter the array controller contents." Since NSCompoundPredicate is a subclass of NSPredicate, I'm hoping (and believe it likely) it's okay to use a compound predicate here.

If that's the case, the hardest part of creating a Smart Group is recreating something like that pretty 'rules' UI that Mail uses ... but that's another topic.

_______________________________________________
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


  • Follow-Ups:
    • Re: Smart Group Question
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Re: Sync Services
  • Next by Date: Re: Updating a _loaded_ Preference Pane
  • Previous by thread: Subclassing NSArrayController ?
  • Next by thread: Re: Smart Group Question
  • Index(es):
    • Date
    • Thread