Re: NSOpenPanel runModal on a dispatch
Re: NSOpenPanel runModal on a dispatch
- Subject: Re: NSOpenPanel runModal on a dispatch
- From: Kyle Sluder <email@hidden>
- Date: Sun, 16 Dec 2012 10:32:25 -0800
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.
--Kyle Sluder
_______________________________________________
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