On 2008/07/23, at 22:15, Matt Neuburg wrote:
On Wed, 23 Jul 2008 18:14:56 +0100, Pedro Teixeira
<[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)
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]