Re: NSOpenGLView - forcing an update.
Re: NSOpenGLView - forcing an update.
- Subject: Re: NSOpenGLView - forcing an update.
- From: Alastair Houghton <email@hidden>
- Date: Fri, 23 Nov 2007 11:03:03 +0000
On 23 Nov 2007, at 09:08, John Clayton wrote:
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?
Is your NSOpenGLView double-buffered? If so, are you calling the -
flushBuffer method at appropriate times?
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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