Re: Spotlight and NSPredicate
Re: Spotlight and NSPredicate
- Subject: Re: Spotlight and NSPredicate
- From: Pedro Teixeira <email@hidden>
- Date: Wed, 23 Jul 2008 23:28:31 +0100
On 2008/07/23, at 22:15, Matt Neuburg wrote:
On Wed, 23 Jul 2008 18:14:56 +0100, Pedro Teixeira
<email@hidden> said:
Is is just me, or its impossible to use Spotlight for its simplest
action: search a keyword in all metadata (* = "something"cdw)
I really cant find a way to do this using NSPredicate...
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/Predicates/Article
s/pSpotlightComparison.html
m.
I've been there a lot of times, i dont see a solution, what i see is:
"Typically all you have to do to convert the Spotlight query into a
predicate format string is make sure the predicate does not start with
* (this is not supported by NSMetadataQuery when parsing a predicate)."
tough (kMDItemTextContent LIKE[cd] "FooBar") is not the same as ((* =
"FooBar*"wcd)) || (kMDItemTextContent = "FooBar*"cd))
so no solution there...
_______________________________________________
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