• 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
Re: Spotlight and NSPredicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spotlight and NSPredicate


  • Subject: Re: Spotlight and NSPredicate
  • From: Pedro Teixeira <email@hidden>
  • Date: Wed, 23 Jul 2008 23:28:31 +0100


On 2008/07/23, at 22:15, Matt Neuburg wrote:

On Wed, 23 Jul 2008 18:14:56 +0100, Pedro Teixeira
<email@hidden> 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 (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


References: 
 >Re: Spotlight and NSPredicate (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: NSLog on releasebuild
  • Next by Date: Cleaning up my Data Model
  • Previous by thread: Re: Spotlight and NSPredicate
  • Next by thread: Dumb question: How does NSScrollView know the size of the thing it's scrolling?
  • Index(es):
    • Date
    • Thread