| Home 目次>ApplicationKit>NSDocument | |
canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
ドキュメントが未保存状態ならセーブするかの警告を出します
-(void) canCloseDocumentWithDelegate:(id)delegate
shouldCloseSelector:(SEL)shouldCloseSelector
contextInfo:(void *)contextInfo
【返り値】 | |
| void | なし |
| 【パラメータ】 | |
| delegate | デリゲート |
| shouldCloseSelector | 終了時のセレクタ |
| contextInfo | 追加情報 |
【解説】
ドキュメントが未保存状態ならセーブするかの警告を出します。
【例文】
[ self canCloseDocumentWithDelegate: self
shouldCloseSelector: @selector (canSave)
contextInfo: nil
];
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDocument | 修正日2006.12.26 |