canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
ドキュメントが未保存状態ならセーブするかの警告を出します
-(void)canCloseDocumentWithDelegate:(id)delegate: shouldCloseSelector:(SEL)shouldCloseSelector: contextInfo:(void *)contextInfo:
解説
ドキュメントが未保存状態ならセーブするかの警告を出します。
返り値
( void )
なし
フレームワーク
ApplicationKit
クラス
NSDocument
Instance Methods
使用可能
10.0
参照
- close
- saveDocument:
- shouldCloseWindowController:
例文
[self canCloseDocumentWithDelegate:self shouldCloseSelector:@selector(canSave) contextInfo:nil ];