NSMetadataQuery can not be synchronous ?
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