macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

hideOtherApplications

INDEX>AppKit>NSBezier

送り主以外の全てのアプリケーションを隠します

Objective-C

- (void)hideOtherApplications

Swift

func hideOtherApplications()

解説

送り主以外の全てのアプリケーションを隠します。

返り値

なし

引数

なし

フレームワーク

ApplicationKit

クラス

NSWorkspace

使用可能

10.0

参照

更新時のバージョン

OS X 10.10

関連記事(外部サイト)

例文

[[NSWorkspace sharedWorkspace] 
    launchApplication:@"QuickTime Player"
    showIcon:NO
    autolaunch:NO
    ];

Swift

    //NSWorkspace hideOtherApplications()
    @IBAction func function010(sender: AnyObject) {
        let theWorkspace : NSWorkspace = NSWorkspace.sharedWorkspace()
        theWorkspace.hideOtherApplications()
    }