Notifications & threads
Notifications & threads
- Subject: Notifications & threads
- From: Chris Hanson <email@hidden>
- Date: Thu, 3 Apr 2003 18:06:55 -0600
The interaction between threads and notifications isn't as fully
documented as I'd like, at least in the documentation included in the
July 2002 Developer Tools. (Which I'm still using at the moment,
though I'm planning to upgrade in the next couple weeks.) I have two
questions about this.
What happens if I post a notification directly to the default
notification center from within a thread other than the main thread?
I assume that its observers will be notified in the same non-main
thread, rather than in the main thread, correct? I also assume it
doesn't matter in what thread the observers register themselves with
the default notification center.
Also, what happens if I enqueue a notification to a thread's default
notification queue if the thread isn't the main thread? Will it be
delivered to observers in that thread, or in the main thread?
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.