Skip to content

Instantly share code, notes, and snippets.

@eternalstorms
Created November 17, 2012 17:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eternalstorms/4098116 to your computer and use it in GitHub Desktop.
Save eternalstorms/4098116 to your computer and use it in GitHub Desktop.
Hide the Full Screen button of an NSWindow that is OS X Lion+ full screen capable
- (void)hideFullscreenButtonOfWindow:(NSWindow *)aWindow
{
NSButton *fsButton = [aWindow standardWindowButton:NSWindowFullScreenButton];
[fsButton setHidden:YES];
fsButton.alphaValue = 0.0;
[fsButton setEnabled:NO];
fsButton.image = nil;
fsButton.alternateImage = nil;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment