Fwd: Making an "undefined" Spotlight NSPredicate?
Fwd: Making an "undefined" Spotlight NSPredicate?
- Subject: Fwd: Making an "undefined" Spotlight NSPredicate?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 1 Jun 2009 12:57:21 -0600
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@hidden>
Date: May 20, 2009 6:38:36 PM MDT
To: email@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden