macOS/iOS API解説

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

目次

miniaturizeAll:

INDEX>AppKit>NSApplication

アプリケーションの全てのウインドウを最小化します

Objective-C

- (void)miniaturizeAll:(id)sender

Swift

func miniaturizeAll(_ sender: AnyObject?)

解説

アプリケーションの全てのウインドウを最小化します。

返り値

なし

引数

Objective-C

( id )sender

Swift

AnyObject?

送信オブジェクト

フレームワーク

ApplicationKit

クラス

NSApplication

使用可能

10.0

編集時のバージョン

10.10

参照

- hide:

例文

#import "Controller.h"

//NSApplicationのデリゲート
@implementation Controller


- (IBAction)pushButton:(id)sender
{
	
	[[NSApplication sharedApplication] miniaturizeAll:nil];
	
}

@end

Swift

    //NSApplication miniaturizeAll
    @IBAction func function030(sender: AnyObject) {
        //共有アプリケーションインスタンスを取得
        let anApplication = MyApplication.sharedApplication()
        //ウインドウ最小化
        anApplication.miniaturizeAll(self)
    }