Skip to content

Instantly share code, notes, and snippets.

@statonjr
Created July 26, 2010 22:48
Show Gist options
  • Save statonjr/491386 to your computer and use it in GitHub Desktop.
Save statonjr/491386 to your computer and use it in GitHub Desktop.
NSRect mainDisplayRect = [[NSScreen mainScreen] frame];
NSWindow *fullScreenWindow = [[NSWindow alloc] initWithContentRect:mainDisplayRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
[fullScreenWindow setLevel:NSMainMenuWindowLevel+1];
[fullScreenWindow makeKeyAndOrderFront:self];
@statonjr
Copy link
Author

Code for creating full-screen application in Objective-C. Drop into applicationDidFinishLaunching:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment