presentationOptions
アプリケーションのプレゼンテーションオプション
@property NSApplicationPresentationOptions presentationOptions
var presentationOptions: NSApplicationPresentationOptions
解説
アプリケーションのプレゼンテーションオプション
フルスクリーンにしたり、メニューバーの表示・非表示など
フレームワーク
ApplicationKit
クラス
NSApplication
使用可能
10.6
更新時のバージョン
OS X 10.10
参照
関連記事
例文
//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 } }