I have some metadata where one of the keys is an array of numbers. I
want to do a metadata query to see if the array of numbers contains
a particular number. So I create this predicate for use in a
NSMetadataQuery:
[NSPredicate predicateWithFormat:@"2 IN numberskey"];
When I run the query it complains that the right hand sign is not a
key. If I try:
it seems to rewrite the predicate to say "numberskey CONTAINS 2" and
again complains that the left hand side is not a valid key path
expression.
Does anybody know how to test an array or collection to see if it
contains a specific value using a metadata query? What is the
predicate syntax?
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden