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 Spotlight predicate strings are slightly
different from the regular ones. This works for me:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"%K LIKE
%@", kMDItemTextContent, @"To be, or not to be"];
_______________________________________________

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]

Reply via email to