Created
September 5, 2012 20:19
-
-
Save samdmarshall/3643990 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (NSScreen *screen in [NSScreen screens]) { | |
NSWindow *new_window = [[NSWindow alloc] initWithContentRect:screen.frame styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO]; | |
[new_window setLevel:kCGScreenSaverWindowLevel]; | |
[new_window makeKeyAndOrderFront:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment