• 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: DotView.m
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DotView.m


  • Subject: Re: DotView.m
  • From: Graeme Phillipson <email@hidden>
  • Date: Wed, 7 Nov 2001 13:01:29 +0000

Hello,

On Wednesday, November 7, 2001, at 11:49 AM, John C. Randolph wrote:


No, -setNeedsDisplay just sets a flag which the superview will check the next time through the event loop to decide whether to send a -drawRect: message.

No, NSWindow does the double-buffering.
OK, I got the details wrong! (must remember to double check next time I post) But all the same the point is that the reason you must use setNeedsDisplay rather than calling drawRect directly is that it gives the framework a chance to do some work for you. Like double buffering.

Graeme Phillipson.


  • Follow-Ups:
    • Re: DotView.m
      • From: John Hörnkvist <email@hidden>
    • Re: DotView.m
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: DotView.m (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: DotView.m
  • Next by Date: Re: DotView.m
  • Previous by thread: Re: DotView.m
  • Next by thread: Re: DotView.m
  • Index(es):
    • Date
    • Thread