• 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: Refresh woes for custom OGL pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Refresh woes for custom OGL pane (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: Help Viewer issue
  • Next by Date: Re: Notification problem
  • Previous by thread: Re: Refresh woes for custom OGL pane
  • Next by thread: Cocoa Wrapper for Carbon Resource Manager
  • Index(es):
    • Date
    • Thread