Re: DotView.m
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.
References: | |
| >Re: DotView.m (From: "John C. Randolph" <email@hidden>) |