delegate
アプリケーションのデリゲートを返します
解説
アプリケーションのデリゲートを返します。
返り値
( id )
デリゲートオブジェクト
引数
フレームワーク
ApplicationKit
クラス
NSApplication
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { id aDelegate = [NSApp delegate]; NSLog([aDelegate className]); NSLog([aDelegate description]); } - (void)applicationDidHide:(NSNotification *)aNotification { [info setStringValue:@"applicationDidHide"]; } @end