FROM : Jaime Magiera
DATE : Mon Nov 26 22:12:28 2007
On Nov 26, 2007, at 4:09 AM, Claus Atzenbeck wrote:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NSPredicate *containsPredicate = [NSPredicate
> predicateWithFormat:@"SELF IN %@", authors];
> if ([containsPredicate evaluateWithObject:[self wikiID]]) {
> NSLog(@"YES");
> } else {
> NSLog(@"NO");
> }
Hello,
Try this...
NSPredicate *containsAuthorPredicate = [NSPredicate
predicateWithFormat:@"(SELF like %@)", [self wikiID]];
NSArray *validAuthors = [authors filteredArrayUsingPredicate:
containsAuthorPredicate];
if([validAuthors count] > 0)
{
NSLog(@"Yes");
} else {
NSLog(@"No");
}
hth,
Jaime
DATE : Mon Nov 26 22:12:28 2007
On Nov 26, 2007, at 4:09 AM, Claus Atzenbeck wrote:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> NSPredicate *containsPredicate = [NSPredicate
> predicateWithFormat:@"SELF IN %@", authors];
> if ([containsPredicate evaluateWithObject:[self wikiID]]) {
> NSLog(@"YES");
> } else {
> NSLog(@"NO");
> }
Hello,
Try this...
NSPredicate *containsAuthorPredicate = [NSPredicate
predicateWithFormat:@"(SELF like %@)", [self wikiID]];
NSArray *validAuthors = [authors filteredArrayUsingPredicate:
containsAuthorPredicate];
if([validAuthors count] > 0)
{
NSLog(@"Yes");
} else {
NSLog(@"No");
}
hth,
Jaime
| Related mails | Author | Date |
|---|---|---|
| Claus Atzenbeck | Nov 26, 10:09 | |
| Jaime Magiera | Nov 26, 22:12 |






Cocoa mail archive

