• 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
NSDrawer in full screen mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSDrawer in full screen mode
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Making an object accessible by both MyDocument AND a custom class
  • Next by Date: Re: App Delegate starting up
  • Previous by thread: Spinning Progress Indicator
  • Next by thread: Re: NSDrawer in full screen mode
  • Index(es):
    • Date
    • Thread