• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMetadataQuery with array keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Who and why creates ~/Library/Caches/<my application> and how to stop it?
  • Next by Date: [MEET} LA CocoaHeads meeting TOMORROW night
  • Previous by thread: Predefining number of copies for the print panel.
  • Next by thread: [MEET} LA CocoaHeads meeting TOMORROW night
  • Index(es):
    • Date
    • Thread