I am using NSPredicate to filter Mutable Arrays of objects. This works
great. However, I have a need to filter on multi object properties in
the Array. Basically, a full text search of the object properties.

I know I can do this by creating a compound predicate for each field,
but I wanted to check and see if there was an easier way to accomplish
this.

I tried to use a wildcard for the keypath:

[NSPredicate predicateWithFormat@"* == 'foo'];

But, that doesnt work. Looking at the docs, I dont see a way to do
this, but wanted to ping the list.

So, is there anyway to search multiple / all object fields in a single
predicate statement?

thanks...

mike
_______________________________________________

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 arch...@mail-archive.com

Reply via email to