• 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 animate to full screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: DnD International No symbol
  • Next by Date: Re: [iPhone] Determining minimum height for a UIWebView
  • Previous by thread: Re: an oldie but a goodie: observing properties of collected objects
  • Next by thread: How to Open PPT file in Cocoa Application
  • Index(es):
    • Date
    • Thread