• 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: [SOLVED] Waiting for NSMetadataQuery to finish?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[SOLVED] Waiting for NSMetadataQuery to finish? (From: Knud Hinnerk Möller <email@hidden>)

  • Prev by Date: Re: Is NSNotification from NSStepper possible
  • Next by Date: drawing NSTextFieldCell nested inside NSTextFieldCell subclass causes crash
  • Previous by thread: [SOLVED] Waiting for NSMetadataQuery to finish?
  • Next by thread: custom nscell
  • Index(es):
    • Date
    • Thread