Hello,

Is it possible to prepare a row template for a NSPredicateEditor in IB for a predicate like "ANY keyPath == 'aValue'" ?

Otherwise I found this : <http://developer.apple.com/samplecode/PhotoSearch/listing2.html >
If I can't do it in IB, I think it will be the simplest solution :

- (NSPredicate *)predicateWithSubpredicates:(NSArray *)subpredicates
{ /* we only make NSComparisonPredicates */
NSComparisonPredicate *predicate = (NSComparisonPredicate *)[super predicateWithSubpredicates:subpredicates]; /* construct an identical predicate, but add the NSCaseInsensitivePredicateOption flag */ return [NSComparisonPredicate predicateWithLeftExpression:[predicate leftExpression] rightExpression:[predicate rightExpression] modifier:NSAnyPredicateModifier type:[predicate predicateOperatorType] options:[predicate options]];
}

Thanks
Frédéric_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to