• 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: NSNotificationQueue & NSOperationQueue thread death
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationQueue & NSOperationQueue thread death


  • Subject: Re: NSNotificationQueue & NSOperationQueue thread death
  • From: Eric Hermanson <email@hidden>
  • Date: Tue, 05 May 2009 23:44:21 -0400


I'll also ask a follow-up question, and that is, if one puts an NSNotification onto the thread's NSNotificationQueue in a method called by performSelectorInBackground..., then is it safe to assume this notification will probably never get sent because the thread spawned automatically by performSelectorInBackground would have exited before that thread's NSNotificationQueue got a chance to deliver its notifications?


- Eric


On May 5, 2009, at 11:40 PM, Eric Hermanson wrote:

The doc for NSNotificationQueue says:

"When the thread where a notification is enqueued terminates before the notification queue posts the notification to its notification center, the notification goes unposted."

My question is, do the NSOperationQueue thread(s) stay around long enough so that notifications enqueued in the NSOperation's main method are guaranteed to be delivered?

- Eric


_______________________________________________

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: NSNotificationQueue & NSOperationQueue thread death
      • From: Michael Ash <email@hidden>
References: 
 >NSNotificationQueue & NSOperationQueue thread death (From: Eric Hermanson <email@hidden>)

  • Prev by Date: Re: Binding the enabled attribute of each NSPopUpButtonCell
  • Next by Date: Re: Advice for drawing complex, line-based designs
  • Previous by thread: NSNotificationQueue & NSOperationQueue thread death
  • Next by thread: Re: NSNotificationQueue & NSOperationQueue thread death
  • Index(es):
    • Date
    • Thread