• 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: NSOpenPanel runModal on a dispatch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel runModal on a dispatch


  • Subject: Re: NSOpenPanel runModal on a dispatch
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 16 Dec 2012 18:39:35 +0000

On 16 Dec 2012, at 18:32, Kyle Sluder wrote:

> On Dec 16, 2012, at 2:45 AM, Tamas Nagy <email@hidden> wrote:
>
>>
>>   dispatch_async(dispatch_get_main_queue(), ^{
>>
>>       NSOpenPanel *oPanel = [NSOpenPanel openPanel];
>
> *Bzzt!* Thou shalt not do UI work on a background thread. You cannot use dispatch_async here.

*Bzzt* he's not doing UI work on a background thread. In any normal app, this is running the code on the main thread.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSOpenPanel runModal on a dispatch
      • From: Kyle Sluder <email@hidden>
References: 
 >NSOpenPanel runModal on a dispatch (From: Tamas Nagy <email@hidden>)
 >Re: NSOpenPanel runModal on a dispatch (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSOpenPanel runModal on a dispatch
  • Next by Date: Re: NSOpenPanel runModal on a dispatch
  • Previous by thread: Re: NSOpenPanel runModal on a dispatch
  • Next by thread: Re: NSOpenPanel runModal on a dispatch
  • Index(es):
    • Date
    • Thread