• 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
NSMetadataQuery can not be synchronous ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMetadataQuery can not be synchronous ?


  • Subject: NSMetadataQuery can not be synchronous ?
  • From: Aurélien Hugelé <email@hidden>
  • Date: Fri, 20 May 2005 10:00:46 +0200

Hi list !

most of my code is currently using MDQueryRef. I have a crash somewhere in MDQueryExecute() with very few informations. I suspect an Apple bug, but i'm not sure...

Trying to fix my bug, i want to use NSMetadataQuery instead of low level MDQueryRef (because i'm maybe doing something wrong ?)
with MDQueryRef, you can  make the query synchronous, i mean block until all results are found, using
    if( !MDQueryExecute(outboxQuery,kMDQuerySynchronous)) // /*kMDQueryWantsUpdates if you want asynchronous mode*/

but AFAIK Cocoa's higher level NSMedataQuery API does not offer this choice, it seems that you can only use asynchronous mode !?

am i wrong ? why do Apple limit our possibilities here ?
I know that asynchronous is generally better design, but it depends...

Aurelien 
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSMetadataQuery can not be synchronous ?
      • From: Chris Kane <email@hidden>
    • Re: NSMetadataQuery can not be synchronous ?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Plugin support for Apple's Mail application
  • Next by Date: Re: Accessing MP3 and AAC album art
  • Previous by thread: Re: Plugin support for Apple's Mail application
  • Next by thread: Re: NSMetadataQuery can not be synchronous ?
  • Index(es):
    • Date
    • Thread