NSView enterFullScreenMode:withOptions: woes; window levels
NSView enterFullScreenMode:withOptions: woes; window levels
- Subject: NSView enterFullScreenMode:withOptions: woes; window levels
- From: "Sean McBride" <email@hidden>
- Date: Mon, 17 Mar 2008 16:51:56 -0400
- Organization: Rogue Research
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@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden