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

Re: NSMetadataQuery can not be synchronous ?


  • Subject: Re: NSMetadataQuery can not be synchronous ?
  • From: Vince DeMarco <email@hidden>
  • Date: Fri, 20 May 2005 09:33:46 -0700


On May 20, 2005, at 4:49 AM, Hamish Allan wrote:


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".



if you run it sync, not it doesn't require a run loop, but behind the scenes a runloop is created all of the results are gathered and the answer is returned.



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


_______________________________________________ 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 can not be synchronous ? (From: Hamish Allan <email@hidden>)

  • Prev by Date: Re: Accessing MP3 and AAC album art
  • Next by Date: Re: 3D surface graphs
  • Previous by thread: NSMetadataQuery can not be synchronous ?
  • Next by thread: CoreData: How to do Transient Entities?
  • Index(es):
    • Date
    • Thread