• 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: Hamish Allan <email@hidden>
  • Date: Fri, 20 May 2005 12:49:07 +0100


On Fri, 20 May 2005 10:00:46 +0200, Aurelien Hugele <email@hidden> wrote:


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*/

On a related note, perhaps you can tell me: does a synchronous search require a run loop? Apple's docs say "MDQuery gathers results and processes updates only while the current thread's run loop is running." But I don't really see why this should have to be the case for a synchronous search ("live updates" aside). Just wondered if somebody knew so I don't have to write a "testlet".


Best wishes,
Hamish

_______________________________________________
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: Vince DeMarco <email@hidden>
  • Prev by Date: Re: CoreData: How to do Transient Entities?
  • Next by Date: dealloc event
  • Previous by thread: Re: NSMetadataQuery can not be synchronous ?
  • Next by thread: Re: NSMetadataQuery can not be synchronous ?
  • Index(es):
    • Date
    • Thread