• 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: Newie question of app aborts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Newie question of app aborts (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: NSDocument
  • Next by Date: Re: Correct behavior of NSTableView?
  • Previous by thread: Re: Newie question of app aborts
  • Next by thread: Fwd: Newie question of app aborts
  • Index(es):
    • Date
    • Thread