I asked this a while back on the Spotlight mailing list and never received a reply. Maybe someone here knows.

Begin forwarded message:

From: Nick Zitzmann <[email protected]>
Date: May 20, 2009 6:38:36 PM MDT
To: [email protected]
Subject: Making an "undefined" Spotlight NSPredicate?
X-Mailer: Apple Mail (2.935.3)

I did search the archives, and didn't see anything. How do I make a NSPredicate for an NSMetadataQuery which evaluates to true if a key- value is undefined by the metadata? I'm trying to run a query that returns true if something is not present.

I already tried "com_chronos_ourkey == NULL", and when attempting to set the predicate in the NSMetadataQuery object, it raises this exception: "NSComparisonPredicate with a right expression which is not a string, number, or date given to NSMetadataQuery (com_chronos_ourkey == nil)"

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Spotlight-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/spotlight-dev/nick%40chronosnet.com

This email sent to [email protected]


Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to