Re: Asynchronous Notification Does NOT Work
Re: Asynchronous Notification Does NOT Work
- Subject: Re: Asynchronous Notification Does NOT Work
- From: Jens Alfke <email@hidden>
- Date: Sun, 05 Jun 2011 12:34:38 -0700
On Jun 5, 2011, at 11:59 AM, Bing Li wrote:
> One issue is that the notification job is done in a thread I created explicitly. It is the potential reason? I will test it.
Oh, that would do it. The notifications are going to be queued on that thread’s runloop then. Did you create a runloop for it, and did you want the notifications to be delivered on that thread, instead of the main thread?
If you just want a background thread to post an action to the main thread, it’s pretty easy to use -performSelectorOnMainThread:.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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