NSOpenGLView animate to full screen
NSOpenGLView animate to full screen
- Subject: NSOpenGLView animate to full screen
- From: Morten Poulsen <email@hidden>
- Date: Thu, 17 Jun 2010 19:53:57 +0200
Hi,
I trying to animate a window containing a NSOpenGLView to full screen. The
implementation follows the recipe by Matt Gallagher:
http://cocoawithlove.com/2009/08/animating-window-to-fullscreen-on-mac.html.
Everything works, except that the OpenGLView flashes once at the beginning
of the animation from window to full screen and once more at the end of the
animation from full screen to window.
Searching the web lead me to try to add the following implementation of
renewGState to my NSOpenGLView. This removed the flashes and unfortunately
also the animation from window to full screen, but not the animation from
full screen to window.
-(void)renewGState
{
NSWindow* the_window = [self window];
if([the_window respondsToSelector:@selector
(disableScreenUpdatesUntilFlush)])
{
[the_window disableScreenUpdatesUntilFlush];
}
[super renewGState];
}
Any help or ideas will be deeply appreciated.
Best regards,
Morten
_______________________________________________
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