NSDrawer in full screen mode
NSDrawer in full screen mode
- Subject: NSDrawer in full screen mode
- From: Paul Cezanne <email@hidden>
- Date: Wed, 25 Sep 2002 07:54:10 -0400
I have a cocoa application that needs to have a background image drawn in full screen mode. Here is how I setup that background image.
I get there with this code fragment:
if(CGDisplayCapture( kCGDirectMainDisplay ) != kCGErrorSuccess){
NSLog(@"CGDisplayCapture Failed");
return;
}
windowLevel = CGShieldingWindowLevel();
if(fullScreenWindow == nil){
fullScreenWindow = [[NSWindow alloc]
initWithContentRect: [[NSScreen mainScreen] frame]
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO screen:[NSScreen mainScreen]
];
[fullScreenWindow setLevel:windowLevel];
[fullScreenWindow setBackgroundColor:[NSColor blackColor]];
[fullScreenWindow setReleasedWhenClosed: NO];
fullScreenImageView = [[CBackgroundTargetView alloc] init];
[fullScreenImageView setMainController:self]; // can't do this at nib time!
[fullScreenImageView SetType:m_type];
[fullScreenWindow setContentView: fullScreenImageView];
}
[fullScreenWindow orderFront:nil];
I bring my main window to the foreground like so:
[myMainWindow setLevel:CGShieldingWindowLevel()];
[myMainWindow makeKeyAndOrderFront:nil];
This all works fine. My problem is that on myMainWindow I have a drawer and when that opens it is not on the ShieldingWindowLevel. NSDrawer does not respond to setLevel.
Is there a solution?
Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.