Re: NSPredicate: To be, or not to be

2008-06-03 Thread Hamish Allan
On Tue, Jun 3, 2008 at 10:23 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > On 3 Jun 2008, at 15:33, Hamish Allan wrote: > >> Are you using Tiger? > > Yes, I am. In that case, finding "Briggel and Braggel" for "Briggel Braggel" is expected behaviour: >> Spotlight indexes on words in Tiger;

Re: NSPredicate: To be, or not to be

2008-06-03 Thread Jason Wiggins
Not to be... I asked this very question of Dominic Giampaolo at last years WWDC as I was running into the same issues with exact phrase searches. I asked if this was now possible in Leopard since I was getting results that contained all the requested words, but not necessarily in their cor

Re: NSPredicate: To be, or not to be

2008-06-03 Thread Gerriet M. Denkmann
On 3 Jun 2008, at 15:33, Hamish Allan wrote: On Tue, Jun 3, 2008 at 1:37 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: This one also works for me. Only it kind of works too well, finding thousands of files. Another example: finds ".../Test.txt" which only contains the line: "Briggel an

Re: NSPredicate: To be, or not to be

2008-06-03 Thread Hamish Allan
On Tue, Jun 3, 2008 at 1:37 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > This one also works for me. Only it kind of works too well, finding > thousands of files. > > Another example: finds > ".../Test.txt" which only contains the line: "Briggel and Braggel" . > But I really want only fil

Re: NSPredicate: To be, or not to be

2008-06-03 Thread Gerriet M. Denkmann
On 3 Jun 2008, at 11:52, [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 7:37 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: On 3 Jun 2008, at 03:30, stephen joseph butler wrote: I'm sorry. I forget that the Spotlight predicate strings are slightly different from the regular ones. This

Re: NSPredicate: To be, or not to be

2008-06-02 Thread stephen joseph butler
On Mon, Jun 2, 2008 at 7:37 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > On 3 Jun 2008, at 03:30, stephen joseph butler wrote: > >> I'm sorry. I forget that the Spotlight predicate strings are slightly >> different from the regular ones. This works for me: >> >> NSPredicate *predicate = [NS

Re: NSPredicate: To be, or not to be

2008-06-02 Thread Gerriet M. Denkmann
On 3 Jun 2008, at 03:30, stephen joseph butler wrote: On Mon, Jun 2, 2008 at 11:08 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: Constucting the format properly (copying your suggestion): NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K contains %@", kMDItemTextContent, @

Re: NSPredicate: To be, or not to be

2008-06-02 Thread stephen joseph butler
On Mon, Jun 2, 2008 at 11:08 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > Constucting the format properly (copying your suggestion): > NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K contains %@", > kMDItemTextContent, @"To be, or not to be"]; I'm sorry. I forget that the Sp

Re: NSPredicate: To be, or not to be

2008-06-02 Thread Gerriet M. Denkmann
On 2 Jun 2008, at 16:52, [EMAIL PROTECTED] wrote: On Sun, Jun 1, 2008 at 9:10 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: Following your suggestion, I changed my predicateFormat to: @"%@ contains kMDItemTextContent" which translates into: and behaves more or less exactly like LIKE.

Re: NSPredicate: To be, or not to be

2008-06-01 Thread stephen joseph butler
On Sun, Jun 1, 2008 at 9:10 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > Following your suggestion, I changed my predicateFormat to: > @"%@ contains kMDItemTextContent" which translates into: > and behaves more or less > exactly like LIKE. > > So again: how to search kMDItemTextContent for

Re: NSPredicate: To be, or not to be

2008-06-01 Thread Gerriet M. Denkmann
On 2 Jun 2008, at 00:20, [EMAIL PROTECTED] wrote: On Sun, Jun 1, 2008 at 9:17 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: When I use an NSMetadataQuery with the NSPredicate "To be, or not to be;"> it seems to find all documents which contain these words in any ord

Re: NSPredicate: To be, or not to be

2008-06-01 Thread stephen joseph butler
On Sun, Jun 1, 2008 at 9:17 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > When I use an NSMetadataQuery with the NSPredicate "To be, or not to be;"> it seems to find all documents which contain these > words in any order; and as they are kind of common, it finds 2

NSPredicate: To be, or not to be

2008-06-01 Thread Gerriet M. Denkmann
When I use an NSMetadataQuery with the NSPredicate it seems to find all documents which contain these words in any order; and as they are kind of common, it finds 23363 files. Not quite what I intended. Actually I am looking for those documents which contain this string exactly as writte