• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSPredicate: To be, or not to be
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicate: To be, or not to be


  • Subject: NSPredicate: To be, or not to be
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sun, 1 Jun 2008 21:17:01 +0700

When I use an NSMetadataQuery with the NSPredicate <kMDItemTextContent LIKE "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 23363 files.

Not quite what I intended.
Actually I am looking for those documents which contain this string exactly as written (e.g. Shakespeare/Plays/Hamlet/3.1.rtf ).


So: how do I have to rephrase my NSPredicate?
And, no: <kMDItemTextContent LIKE "The slings and arrows of outrageous fortune"> is not the answer to my question.


10.4.11

Kind regards,

Gerriet.

_______________________________________________

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


  • Follow-Ups:
    • Re: NSPredicate: To be, or not to be
      • From: "stephen joseph butler" <email@hidden>
  • Prev by Date: Re: Leak when animating Core Animation Superlayer
  • Next by Date: Re: Leak when animating Core Animation Superlayer
  • Previous by thread: Re: how to implement ETA
  • Next by thread: Re: NSPredicate: To be, or not to be
  • Index(es):
    • Date
    • Thread