On Dec 16, 2012, at 10:39 AM, Mike Abdullah <[email protected]> wrote:
> > On 16 Dec 2012, at 18:32, Kyle Sluder wrote: > >> On Dec 16, 2012, at 2:45 AM, Tamas Nagy <[email protected]> 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. Yeah. Um. Oops. My apologies. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
