Hi all, Is anyone using the new NSView full screen methods in 10.5?
I have a window which contains a 'group view', it is basically an NSView that contains two subviews: a button, and an custom NSView that draws pretty pictures. The button displays a floating palette (NSPanel). My ultimate goal is to make the 'group view' full screen but allow the floating palette to be above it. If I do: NSDictionary* options = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:kCGNormalWindowLevel], NSFullScreenModeWindowLevel, nil]; [groupView enterFullScreenMode:[NSScreen mainScreen] withOptions:options]; NSLog (@"level %d", [[groupView window] level]); Then it does go fullscreen, but the window level is kCGMaximumWindowLevel-1, not kCGNormalWindowLevel. As such, my panel (at kCGFloatingWindowLevel) is invisible. Am I doing something wrong here? Shouldn't the window level be what I told it to be? I poked around, and found the private function to set window level, and it is called, but I'm not sure how to tell what parameter it is being passed. #0 0x9211ace3 in CGSSetWindowLevel () #1 0x9224ff36 in createShieldWindow () #2 0x9224fb7f in _CGDisplayCaptureWithPsnAndOptions () #3 0x92261257 in _CGCaptureAllDisplaysWithPsnAndOptions () #4 0x92261117 in CGCaptureAllDisplaysWithOptions () #5 0x92444b7c in CGCaptureAllDisplays () #6 0x96ac6dca in +[NSScreen(_NSFullScreenSupport) _captureAllScreens:] () #7 0x96ac7464 in -[NSView(NSFullScreenMode) enterFullScreenMode:withOptions:] () Thanks, -- ____________________________________________________________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]