Re: Refresh woes for custom OGL pane
Re: Refresh woes for custom OGL pane
- Subject: Re: Refresh woes for custom OGL pane
- From: Cryx <email@hidden>
- Date: Tue, 30 Apr 2002 21:05:11 -0500
On Tuesday, April 30, 2002, at 09:00 AM, Brent Gulanowski wrote:
On Tuesday, April 30, 2002, at 01:04 AM, Erik M. Buck wrote:
NEVER CALL -drawRect:! Call -display or -displayRect: or
-setNeedsDisplay:
or -setNeedsDisplayInRect:. Your failure to call one of these methods
may
explain all of your problems.
So what BAD THINGS HAPPEN when you call -drawRect: directly?
In my early experience: difficult to debug timing issues that crash your
app. The biggest problem is probably the failure to lock focus. See
NSView's drawRect: & lockFocus: documentation for more details.
_______________________________________________
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.