• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 7 Oct 2003 21:02:42 +0200

Because these are NSWindows, could main be colliding with the threads' calls, thus leading to a situation in which two threads (the render thread and main) are issuing commands? I don't do any drawing except from the threads, so each thread is rendering only into its own context. Something is still corrupting things enough to hang the hardware. Do I need to do further overloading of NSView to make certain that the main thread is never trying to do any drawing within the view?

I'm no threads guru, but from what I know, AppKit is *not* thread-safe. The only thing supported by Apple with regard to GUI so far is manipulating it from the main thread. (Apparently, Apple have long-term plans to make both Carbon and Cocoa thread-safe, but that may be in MacOS 11...)

Have you looked into dispatching any calls that relate to the windows via the main thread? NSThread has a method for calling methods on the main thread. This may not be as effective, but may be your only option.

Hopefully, someone else with more knowledge of threads has a more positive answer for you.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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 Ridd <email@hidden>
References: 
 >Multiple Threaded Windows (From: Chris Scharver <email@hidden>)

  • Prev by Date: open remote file with local application?
  • Next by Date: Re: Multiple Threaded Windows
  • Previous by thread: Multiple Threaded Windows
  • Next by thread: Re: Multiple Threaded Windows
  • Index(es):
    • Date
    • Thread