• 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
Full screen windows and NSPopUpButtons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: pplot
  • Next by Date: Re: Slow converting index color to RGB
  • Previous by thread: Re: pplot
  • Next by thread: NSColorWell and NSColor Category
  • Index(es):
    • Date
    • Thread