Re: Multiple Threaded Windows
Re: Multiple Threaded Windows
- Subject: Re: Multiple Threaded Windows
- From: Chris Hanson <email@hidden>
- Date: Tue, 7 Oct 2003 14:08:37 -0500
On Tuesday, October 7, 2003, at 01:25 PM, Chris Scharver wrote:
How does AppKit forward user events from the main process to objects
created in other threads?
Events are delivered in the main thread. Framework-driven drawing also
occurs in the main thread.
http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/index.html
According to that document, more of AppKit is thread-safe than I
thought it was (and much more than used to be -- especially in the
OpenStep days when I first learned it). But I'm still *extremely* wary
of dealing with human interfaces in multiple threads.
Also, threads are flows of execution. Objects do not "live" in any
particular thread, they live in a task (address space). So just
because one thread created an object does not mean that object
"belongs" to the thread.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X 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.