macOS/iOS API解説

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

目次

applicationDidHide:

アプリケーションが隠された直後呼ばれます
-(void)applicationDidHide:(NSNotification *)aNotification:

解説

アプリケーションが隠された直後呼ばれます。
通知(aNotification)は常にNSApplicationDidHideNotificationです。

デリゲートメソッド

返り値

( void )

なし

引数

( NSNotification * )aNotification

通知NSApplicationDidHideNotification

フレームワーク

ApplicationKit

クラス

NSApplication

Instance Methods

使用可能

10.0

参照

- applicationWillHide:
- applicationDidUnhide:
- hide:

例文

#import "Controller.h"

@implementation Controller

- (IBAction)pushButton:(id)sender
{
	
	[NSApp hide:nil];
	
}

- (void)applicationDidHide:(NSNotification *)aNotification
{
	[info setStringValue:@"applicationDidHide"];
	NSLog([aNotification description]);

}
@end