Preventing flicker on moving NSView to a different superview
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