currentSystemPresentationOptions
現在のシステムプレゼンテーションオプション
@property(readonly) NSApplicationPresentationOptions currentSystemPresentationOptions
var currentSystemPresentationOptions: NSApplicationPresentationOptions { get }
解説
現在のシステムプレゼンテーションオプション
フルスクリーンにしたり、メニューバーの表示・非表示など
フレームワーク
ApplicationKit
クラス
NSApplication
使用可能
10.6-
更新時のバージョン
OS X 10.10
関連記事(外部サイト)
Technical Note TN2062: Creating Kiosks
Implementing the Full-Screen Experience
osx - (OS X) Detecting when front app goes into fullscreen mode - Stack Overflow
Stork Lab: Emacs 23.3.50 フルスクリーン Lion 対応版
http://electricsheep.googlecode.com/svn/trunk/client_generic/MacBuild/ESWindow.m
例文
BOOL isFS = (([[NSApplication sharedApplication] currentSystemPresentationOptions] & NSApplicationPresentationFullScreen) == NSApplicationPresentationFullScreen);
//NSApplication currentSystemPresentationOptions/presentationOptions @IBAction func function062(sender: AnyObject) { let anApplication = MyApplication.sharedApplication() window.collectionBehavior = NSWindowCollectionBehavior.FullScreenPrimary window.toggleFullScreen(self) } //NSApplication currentSystemPresentationOptions/presentationOptions @IBAction func function063(sender: AnyObject) { let anApplication = MyApplication.sharedApplication() switch anApplication.currentSystemPresentationOptions { case NSApplicationPresentationOptions.FullScreen: NSLog("system FullScreen YES") case NSApplicationPresentationOptions.Default: NSLog("system FullScreen NO") default: break } switch anApplication.presentationOptions { case NSApplicationPresentationOptions.FullScreen: NSLog("app FullScreen YES") case NSApplicationPresentationOptions.Default: NSLog("app FullScreen NO") default: break } }