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

Re: NSMetadataQuery parsing error


  • Subject: Re: NSMetadataQuery parsing error
  • From: David Masters <email@hidden>
  • Date: Sat, 2 Jul 2005 11:51:45 +0100

Ken,

On 2 Jul 2005, at 11:27, Ken Tozier wrote:

I can get it working if I omit "&& (kMDItemContent != com.apple.mail.emix) && (kMDItemContent != public.vcard)" from the predicate but if either (or both) of these are included, it spits out the error "

I've got a similar query working using kMDItemContentType (not sure about kMDItemContent), and by enclosing the com.apple.mail.emix in single quotes:


NSPredicate *predicate = [NSPredicate predicateWithFormat:@"((kMDItemContentType != 'com.apple.mail.emlx')...

Hope this helps!

David

_______________________________________________
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


References: 
 >NSMetadataQuery parsing error (From: Ken Tozier <email@hidden>)
 >Re: NSMetadataQuery parsing error (From: mmalcolm crawford <email@hidden>)
 >Re: NSMetadataQuery parsing error (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSMetadataQuery parsing error
  • Next by Date: Re: NSMetadataQuery parsing error
  • Previous by thread: Re: NSMetadataQuery parsing error
  • Next by thread: Help Anchors
  • Index(es):
    • Date
    • Thread