Smart Group Question
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