activeApplication
現在アクティブなアプリケーションの情報を返します
解説
現在アクティブなアプリケーションの情報を返します。
アプリケーション情報の辞書キー
●NSApplicationBundleIdentifier
●NSApplicationName
●NSApplicationPath
●NSApplicationProcessIdentifier
●NSApplicationProcessSerialNumberHigh
●NSApplicationProcessSerialNumberLow
返り値
( NSDictionary * )
メニュー
引数
フレームワーク
ApplicationKit
クラス
NSWorkspace
Instance Methods
使用可能
10.2
参照
-launchedApplications
例文
NSLog([[[NSWorkspace sharedWorkspace] activeApplication] description]);