setTitle:
ウインドウにタイトルをセットします
-(void)setTitle:(NSString *)aString:
解説
ウインドウにタイトルをセットします。
返り値
( void )
なし
引数
( NSString * )aString
セットするタイトル
フレームワーク
ApplicationKit
クラス
NSWindow
Instance Methods
使用可能
10.0
参照
- title
- setTitleWithRepresentedFilename:
- setMiniwindowTitle:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { [myWindow setTitle:@"New Title"]; } @end