• 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: Asynchronous Notification Does NOT Work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Asynchronous Notification Does NOT Work
      • From: Bing Li <email@hidden>
References: 
 >Asynchronous Notification Does NOT Work (From: Bing Li <email@hidden>)
 >Re: Asynchronous Notification Does NOT Work (From: Jens Alfke <email@hidden>)
 >Re: Asynchronous Notification Does NOT Work (From: Bing Li <email@hidden>)

  • Prev by Date: Re: Howto eliminate the delay for the first call of -(NSMenu*)menuForEvent: (NSTableView class)?
  • Next by Date: Re: Howto eliminate the delay for the first call of -(NSMenu*)menuForEvent: (NSTableView class)?
  • Previous by thread: Re: Asynchronous Notification Does NOT Work
  • Next by thread: Re: Asynchronous Notification Does NOT Work
  • Index(es):
    • Date
    • Thread