Re: NSAlert and threading
Re: NSAlert and threading
- Subject: Re: NSAlert and threading
- From: Jens Alfke <email@hidden>
- Date: Mon, 23 May 2016 18:08:43 -0700
> On May 23, 2016, at 2:41 PM, Fritz Anderson <email@hidden> wrote:
>
> Hence the rule that you don’t do _anything_ lengthy on the main (GUI-runloop) thread. You can see how using a separate thread would solve your problem. Welcome to 2003.
Less dogmatically, you can use -performSelector:withObject:afterDelay:, with a zero delay, to schedule the actual work to take place right after the alert finishes handling the event and closing.
—Jens
_______________________________________________
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