Full screen windows and NSPopUpButtons
Full screen windows and NSPopUpButtons
- Subject: Full screen windows and NSPopUpButtons
- From: Ronald Oussoren <email@hidden>
- Date: Wed, 27 Aug 2003 12:10:06 +0200
Hi,
I'm building a kiosk-style full screen application and noticed a
problem with pop-up buttons.
I create the full screen window like this:
if (CGDisplayCapture(kCGDirectMainDisplay) != kCGErrorSuccess) {
NSLog(@"Couldn't capture the main display!");
return nil;
}
windowLevel = CGShieldingWindowLevel();
screenRect = [[NSScreen mainScreen] frame];
mainWindow = [[NSWindow alloc] initWithContentRect:screenRect
styleMask:NSBorderlessWindowMask
backing:NSBackingStoreBuffered
defer:NO
screen:[NSScreen mainScreen]];
[mainWindow setLevel:windowLevel];
[mainWindow makeKeyAndOrderFront:nil];
This works pretty wel, except for pop-up buttons in the contentView of
the mainWindow, the pop-up menu is never shown. I suppose this has
something to do with the windowLevel of the menu, but I cannot find how
to change this (of if I should try to change this at all).
Ronald
_______________________________________________
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.