NSMetadataQuery with array keys
NSMetadataQuery with array keys
- Subject: NSMetadataQuery with array keys
- From: Rod Schmidt <email@hidden>
- Date: Wed, 8 Nov 2006 15:03:11 -0700
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:
[NSPrediate predicateWithFormat:@"numberskey CONTAINS 2"];
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:
This email sent to email@hidden