• 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 and NSMetadataQuery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPredicate and NSMetadataQuery


  • Subject: NSPredicate and NSMetadataQuery
  • From: Aleaxander Cohen <email@hidden>
  • Date: Fri, 10 Mar 2006 21:57:56 -0500

I'm getting a weird error when using using an NSPredicate with a NSMetadataQuery. Here's the format for the NSPredicate:

(kMDItemDisplayName = '*a*') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard)

And here's the error i get in the console:

NSTimer discarding exception 'NSComparisonPredicate with right expression which is not NSConstantValueExpressionType given to NSMetadataQuery (kMDItemContentType != com.apple.mail.emlx)' that raised during firing of timer with target 358e70 and selector '_sendPartialString'

Any ideas whats going on?

Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Spotlight Metadata attribute keys
  • Next by Date: Re: Attempting to draw upon a CGLayer upon a NSView
  • Previous by thread: Re: Spotlight Metadata attribute keys
  • Next by thread: Re: NSPredicate and NSMetadataQuery
  • Index(es):
    • Date
    • Thread