Skip to content

Instantly share code, notes, and snippets.

@GenjiApp
Created December 13, 2011 08:52
Show Gist options
  • Save GenjiApp/1471278 to your computer and use it in GitHub Desktop.
Save GenjiApp/1471278 to your computer and use it in GitHub Desktop.
NSWindow's category for full screen mode.
#import <AppKit/AppKit.h>
@interface NSWindow (FullScreen)
- (BOOL)isInFullScreenMode;
@end
#import "NSWindow+FullScreen.h"
@implementation NSWindow (FullScreen)
- (BOOL)isInFullScreenMode
{
return ([self styleMask] & NSFullScreenWindowMask) ? YES : NO;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment