• 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
Preventing flicker on moving NSView to a different superview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing flicker on moving NSView to a different superview


  • Subject: Preventing flicker on moving NSView to a different superview
  • From: Jonathan del Strother <email@hidden>
  • Date: Fri, 15 Jul 2005 19:49:23 +0100

I've got a normal Cocoa window containing a large OpenGL-based NSView. I'm creating a new, borderless window on top of the original window, and moving the NSView from the old one to the new one. (The intention here is to expand the new window to give a zoom effect on entering fullscreen, like Quicktime Pro does)

Here's the code that my NSView uses :

fsWindow = [[NSWindow alloc] initWithContentRect:screenViewFrame
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO];


    [fsWindow setContentView:self];
    [fsWindow setHasShadow: NO];
    [fsWindow makeKeyAndOrderFront:fsWindow];


However, there's an annoying flicker that appears, as if it's displaying a flash of the blank fsWindow before it gets filled in with the NSView. Any ideas on removing this?


Thanks,
Jon
_______________________________________________
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


  • Follow-Ups:
    • Re: Preventing flicker on moving NSView to a different superview
      • From: Troy Stephens <email@hidden>
  • Prev by Date: Re: Not even a portion of a window?
  • Next by Date: screensaver notifications?
  • Previous by thread: Re: Not even a portion of a window?
  • Next by thread: Re: Preventing flicker on moving NSView to a different superview
  • Index(es):
    • Date
    • Thread