• 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
NSOpenGLView - forcing an update.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenGLView - forcing an update.


  • Subject: NSOpenGLView - forcing an update.
  • From: John Clayton <email@hidden>
  • Date: Fri, 23 Nov 2007 10:08:58 +0100

Hello List,

I would like to know how I can force a bog standard NSOpenGLView to refresh its content. Is it as simple as saying :
[theView setNeedsDisplay:YES]


???

Cos when I do this, my draw method does get called (i.e. drawRect:), but the image on the view itself does not change. When I resize the view, the image is then updated immediately. Anyone else seen this kinda of thing before?

Thanks (a lot) in advance for any comments/help - have a good day!
--
John Clayton
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSOpenGLView - forcing an update.
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: Overlapping Views
  • Next by Date: Re: Finding the height of a piece of text
  • Previous by thread: Problem with compatibility with Leopard released ver.
  • Next by thread: Re: NSOpenGLView - forcing an update.
  • Index(es):
    • Date
    • Thread