NSDocument:canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo:
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
];


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSDocument
修正日2006.12.26