Re: [SOLVED] Waiting for NSMetadataQuery to finish?
Re: [SOLVED] Waiting for NSMetadataQuery to finish?
- Subject: Re: [SOLVED] Waiting for NSMetadataQuery to finish?
- From: Kaelin Colclasure <email@hidden>
- Date: Thu, 19 Oct 2006 11:53:30 -0700
On Oct 19, 2006, at 5:48 AM, Knud Hinnerk Möller wrote:
Please tell me if that use of CFRunLoop is ok?
Hi Knud,
Yes, in general this use of a nested run loop is okay... There are a
couple of subtleties to be aware of though. Foremost, since you're
nested loop is running in the default run loop mode, you're likely to
have other run loop sources fire while you're "blocked" in the nested
loop. This may or may not cause problems, depending on what sources
are active and how they're handled.
If this turns out to be an issue, executing the query synchronously
on a worker thread is another option. It's worth noting that all
synchronous query execution does is invoke a nested run loop, so
doing a synchronous MDQueryExecute() on the same thread still has
potential issues with other run loop sources (in Tiger at least).
HTH,
-- Kaelin
_______________________________________________
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