Cocoa Open a fullscreen window on the second screen maintaining the app visible on the first
- 阅读更多 关于 Cocoa Open a fullscreen window on the second screen maintaining the app visible on the first
I'm developing an app on OSX 10.7 and I'm trying and the goal is to open some images on a second screen while the app has to run normally on the first. So the code is the following: NSScreen *screen = [[NSScreen screens] objectAtIndex:1]; fullScreenWindow = [[NSWindow alloc] initWithContentRect:[screenFrame] styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO screen:screen]; [fullScreenWindow setLevel: NSMainMenuWIndowLevel + 1]; [fullScreenWindow setOpaque: YES]; [fullScreenWindow setBackgroundColor:[NSColor yellowColor]]; fullScreenView = [[NSView alloc] initWithFrame