Re: NSNotificationQueue & NSOperationQueue thread death
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