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