setWindowFrameAutosaveName:
ウインドウのサイズと位置の自動保存名をセットします
-(void)setWindowFrameAutosaveName:(NSString *)name:
解説
ウインドウのサイズと位置の自動保存名をセットします。
返り値
( void )
なし
引数
( NSString * )name
自動保存名
フレームワーク
ApplicationKit
クラス
NSWindowController
Class Methods
使用可能
10.0
参照
- windowFrameAutosaveName
- setFrameAutosaveName:(NSWindow)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //MyControllerはNSWindowControllerのサブクラス MyController *contoroller = [[sender window] windowController]; [contoroller showWindow:nil]; [contoroller setWindow:otherWindow]; [contoroller showWindow:nil]; [contoroller setShouldCascadeWindows:NO]; NSLog([contoroller windowFrameAutosaveName]); [contoroller setWindowFrameAutosaveName:@"windowName"]; NSLog([contoroller windowFrameAutosaveName]); [contoroller synchronizeWindowTitleWithDocumentName]; } @end