Re: CoreData "in" predicate

2010-05-03 Thread Frederick Reimer
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, t

Re: CoreData "in" predicate

2010-05-03 Thread Frederick Reimer
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 predicateWithFormat: @"attribute

Re: CoreData "in" predicate

2010-05-03 Thread Frederick Reimer
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