Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMetadataQuery with array keys



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.