I guess I should check if [NSApplication presentationOptions] contains NSFullScreenModeApplicationPresentationOptions, but how do I achieve that?>
[NSApplication presentationOptions]
NSFullScreenModeApplicationPresentationOptions
For Swift 3.0
if let window = NSApp.mainWindow { let isWindowFullscreen = window.styleMask.contains(NSFullScreenWindowMask) }
Obviously, for the original question, you'd replace NSApp.mainWindow with whichever document window you're wanting to check.
NSApp.mainWindow