Contents

panel:shouldShowFilename:

Gives the delegate the opportunity to filter items that it doesn’t want the user to choose.

Declaration

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

Parameters

  • sender:

    Panel that is querying whether it should show a certain file.

  • filename:

    String representing the name of the file to be loaded in the browser.

Return Value

YES if filename should be selectable, and NO if the save panel should disable the file or directory.

Discussion

The NSSavePanel object sender sends this message to the panel’s delegate for each file or directory (filename) it is about to load in the browser.

See Also

Related Documentation