Re: Notifications to other threads
Re: Notifications to other threads
- Subject: Re: Notifications to other threads
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 7 Jan 2002 17:48:12 +0100
On Monday, January 7, 2002, at 04:48 , mikevannorsdel wrote:
I'm looking to get system notifications
(NSWorkspaceDidMountNotification,
NSApplicationWillTerminateNotification, ect) in a thread other than the
main
thread. The reason being is that the main thread will probably be busy
in a
loop when notifications arrive. As far as I can tell, these
notifications
always go to the main thread, even if the observer was added in a
separate
thread (I assume because the notification is posted in the main thread).
How can I get these notifications sent to a specific thread?
Just in case you're doing a UI-app: Don't pollute the main thread,
because your app will be unresponsive while your app is running in a
loop (Beachball Of Death).
andy