Re: NSPredicate: To be, or not to be
Re: NSPredicate: To be, or not to be
- Subject: Re: NSPredicate: To be, or not to be
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 3 Jun 2008 09:33:39 +0100
On Tue, Jun 3, 2008 at 1:37 AM, Gerriet M. Denkmann
<email@hidden> wrote:
> This one also works for me. Only it kind of works too well, finding
> thousands of files.
>
> Another example: <kMDItemTextContent LIKE "Briggel Braggel"> finds
> ".../Test.txt" which only contains the line: "Briggel and Braggel" .
> But I really want only files which contain "Briggel Braggel" or "the Briggel
> Braggel of today".
Are you using Tiger? Spotlight on indexes words in Tiger; phrase
indexing began in Leopard -- the phrase must be enclosed within
quotation marks, IIRC (i.e. @"%K LIKE \"%@\"")
Hamish
_______________________________________________
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