Re: Newie question of app aborts
Re: Newie question of app aborts
- Subject: Re: Newie question of app aborts
- From: Andrew Platzer <email@hidden>
- Date: Tue, 6 Nov 2001 13:25:53 -0800
On Tuesday, November 6, 2001, at 12:53 , Finlay Dobbie wrote:
When the file is downloading (in a new thread) I write the transfer rate
in a NSTextField.
Drawing should only be done in the main thread because AppKit is not
thread-safe.
Not true. All drawing should be thread safe. As long as each thread does a
lockFocus on the view it wants to draw into, everything should work fine.
For example, the progress indicator runs in a separate thread but can draw
to a window while the main thread is also drawing.
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e