Re: [Core Data - Newbie] predicateWithValue: ?
Re: [Core Data - Newbie] predicateWithValue: ?
- Subject: Re: [Core Data - Newbie] predicateWithValue: ?
- From: Charilaos Skiadas <email@hidden>
- Date: Tue, 2 Aug 2005 09:55:13 -0500
On Aug 2, 2005, at 9:31 AM, Charles Haron wrote:
Hello All,
In what kind of circumstances would one want to use
predicateWithValue: ?
First of all, this is not necessarily a Core Data question.
NSPredicate is not part of Core Data.
Second, what is weird about it? Suppose you have a Boolean value,
maybe defined through a check-box in the UI, and you also have some
predicate that does something really cool and complicated, but you
want it to only be used when the box is not checked, and otherwise
you want everything to be always YES. Then you could OR-combine your
wonderful predicate with a predicateWithValue: given by that check-box.
Just off the top of my head, I'm sure there are other uses.
Charles
Haris
_______________________________________________
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