• 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: setNeedsDisplay broken in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setNeedsDisplay broken in Tiger


  • Subject: Re: setNeedsDisplay broken in Tiger
  • From: Troy Stephens <email@hidden>
  • Date: Tue, 24 May 2005 13:01:12 -0700

On May 24, 2005, at 11:32 AM, Troy Stephens wrote:
As Bob Ippolito pointed out, messaging views from a secondary thread is in general not thread-safe and therefore not a recommended practice, on any version of Mac OS X.

To clarify a bit: There _are_ some aspects of view functionality that are OK to use in a multithreaded manner.  For example, locking focus to draw in a view on a secondary thread is supported.


The -setNeedsDisplay: and -setNeedsDisplayInRect: operations, however, are not thread-safe, and should therefore always be performed on the application's main thread.


--

Troy Stephens

Cocoa Frameworks

Apple Computer, Inc.



 _______________________________________________
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

  • Follow-Ups:
    • Re: setNeedsDisplay broken in Tiger
      • From: Andrew Thompson <email@hidden>
References: 
 >setNeedsDisplay broken in Tiger (From: John Nairn <email@hidden>)
 >Re: setNeedsDisplay broken in Tiger (From: Troy Stephens <email@hidden>)

  • Prev by Date: Next PHAD meeting is Thursday, May 26th
  • Next by Date: Suppress "Bring All to Front" menu item in Window menu?
  • Previous by thread: Re: setNeedsDisplay broken in Tiger
  • Next by thread: Re: setNeedsDisplay broken in Tiger
  • Index(es):
    • Date
    • Thread