Wrong assumption; you would actually use "SELF" in a format string, as it is a
reserved word. So @"SELF IN %@"
I think...
Fred Reimer, CCIE 23812 CISSP 107125
mailto:frei...@freimer.org
On May 2, 2010, at 4:32 PM, Frederick Reimer wrote:
> Unfortunately, there is nothing for the NSPredicat
Unfortunately, there is nothing for the NSPredicate class to go on to assume
what object you are talking about. predicateWithFormat is a class
method/selector/function. What object is it supposed to assume you mean if one
is not supplied?
Dan Rowley sent me an email saying you may be able to
The manuals for this give the following example:
NSPredicate *inPredicate =
[NSPredicate predicateWithFormat: @"attribute IN %@", aCollection];
It looks like you are missing the attribute... If attribute can vary, you can
use a %K and a NSString value representing the attribute name
Thanks, everyone, for telling me about "self."
On May 2, 2010, at 14:53:09, Frederick Reimer wrote:
> Wrong assumption; you would actually use "SELF" in a format string, as it is
> a reserved word. So @"SELF IN %@"
>
> I think...
>
>
> Fred Reimer, CCIE 23812 CISSP 107125
> mailto:frei...@fr
On May 2, 2010, at 6:03 AM, Rick Mann wrote:
> I saw that, I had hoped that by not specifying an attribute, it would mean
> the object itself, not an attribute on the object.
Predicates have the “self” keyword for that.
— Chris
___
Cocoa-dev mail
I saw that, I had hoped that by not specifying an attribute, it would mean the
object itself, not an attribute on the object.
On May 2, 2010, at 05:58:39, Frederick Reimer wrote:
> The manuals for this give the following example:
>
> NSPredicate *inPredicate =
> [NSPredicate predic
Hi.
I have two entities: Mission and Favorite. Favorite has a single relation to
Mission. I need to fetch all Mission objects that exist in Favorite. I'm using
an NSFetchResultsController.
I created an array with all the Mission objects found in the Favorite entity.
Then I tried to create a pr