• 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: thread safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setNeedsDisplay: thread safe?


  • Subject: Re: setNeedsDisplay: thread safe?
  • From: Jirka Jirout <email@hidden>
  • Date: Fri, 9 Apr 2004 00:24:06 +0200

Also, it says the display will update on the next pass through the run loop, can I expect this to be pretty regular, or should I somehow manually invoke drawing?

My experience is to use display method instead of -setNeedsDisplay: if you really need to be sure when the drawing actually occurs.

Recently I had to replace all -setNeedsDisplay: calls with -display calls in one of my applications since the redrawing did not always occur soon enough. I also experienced some problems with drawing (new content drawn over the old one without clearing it etc.) when using -setNeedsDisplay:

jj
_______________________________________________
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: setNeedsDisplay: thread safe?
      • From: "Mike R. Manzano" <email@hidden>
References: 
 >setNeedsDisplay: thread safe? (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: Re: Objective-C++
  • Next by Date: Re: setNeedsDisplay: thread safe?
  • Previous by thread: setNeedsDisplay: thread safe?
  • Next by thread: Re: setNeedsDisplay: thread safe?
  • Index(es):
    • Date
    • Thread