• 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: Multiple Threaded Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Multiple Threaded Windows
      • From: Chris Scharver <email@hidden>
    • Re: Multiple Threaded Windows
      • From: Clark Goble <email@hidden>
References: 
 >Multiple Threaded Windows (From: Chris Scharver <email@hidden>)

  • Prev by Date: Re: Multiple Threaded Windows
  • Next by Date: Re: Multiple Threaded Windows
  • Previous by thread: Re: Multiple Threaded Windows
  • Next by thread: Re: Multiple Threaded Windows
  • Index(es):
    • Date
    • Thread