Instance Method インスタンスメソッド

panel:isValidFilename:

Gives the delegate the opportunity to validate selected items.

Declaration 宣言

- (BOOL)panel:(id)sender 
isValidFilename:(NSString *)filename;

Parameters パラメータ

sender

Panel requesting filename validation.

filename

String representing the filename to validate.

Return Value 戻り値

YES if the filename is valid, or NO if the save panel should stay in its modal loop and wait for the user to type in or select a different filename or names.

Discussion 解説

The NSSavePanel object sender sends this message just before the end of a modal session for each filename displayed or selected (including filenames in multiple selections). If the delegate refuses a filename in a multiple selection, none of the filenames in the selection is accepted.

See Also 参照

Methods

Related Documentation 関連文書