Re: setFrame blocks thread?
Re: setFrame blocks thread?
- Subject: Re: setFrame blocks thread?
- From: Jack Nutting <email@hidden>
- Date: Thu, 20 Oct 2005 15:11:56 +0200
On 10/20/05, Theo Vosse <email@hidden> wrote:
> Hi,
>
> I have two threads that both do something with the same view.
> [...]
> Any suggestions?
Back in the day, the canonical answer was always "Don't try to draw
from two threads at once; AppKit is not thread-safe." However, there
is some indication [
http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/articles/CocoaSafety.html#//apple_ref/doc/uid/20000736
or http://tinyurl.com/b8fuy ] that basic drawing from multiple threads
may be safe nowadays, "as long as you bracket drawing calls with calls
to lockFocusIfCanDraw and unlockFocus". There's more advice on that
page as well, hopefully that will help.
--
// jack
// http://www.nuthole.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden