Re: DotView.m
Re: DotView.m
- Subject: Re: DotView.m
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 7 Nov 2001 05:08:00 -0800
On Wednesday, November 7, 2001, at 05:01 AM, Graeme Phillipson wrote:
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.
Double-buffering is a property of the Window, not the View, and it's
orthogonal to why you shouldn't call -drawRect:.
-jcr
"These kids today don't know the simple joy of saving four bytes of
page-0 memory on a 6502" - unknown
References: | |
| >Re: DotView.m (From: Graeme Phillipson <email@hidden>) |