• 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: Problem with setNeedsDisplay: in derived NSOpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with setNeedsDisplay: in derived NSOpenGLView


  • Subject: Re: Problem with setNeedsDisplay: in derived NSOpenGLView
  • From: Erik Buck <email@hidden>
  • Date: Thu, 1 Dec 2005 10:08:48 -0800 (PST)


1) Verify that you are not calling -setNeedsDisplay: from within your implementation of -drawRect:



2) Verify that you are actually drawing your GL scene including a glFlush() if necessary from within your implementation of -drawRect:



3) Make sure you are not calling -setNeedsDisplay: from a different thread from the one sending GL commands.



4) Verify that calling -display instead of -setNeedsDisplay: does the right thing.


5) Verify that you are not hijacking the normal event loop which is used to coalesce -setNeedsDisplay: calls into a single -display call during the next event loop.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: [NSApp mainMenu] returns nil under 10.4.3
  • Next by Date: Re: NSPopUpButton binding
  • Previous by thread: Re: Problem with setNeedsDisplay: in derived NSOpenGLView
  • Next by thread: Re: Is Apple's singleton sample code correct?
  • Index(es):
    • Date
    • Thread