Instance Method

setDirectory:

Sets the current pathname in the panel’s browser.

Declaration

- (void)setDirectory:(NSString *)path;

Parameters

path

String to set as the panel’s current pathname.

Discussion

The path argument must be an absolute pathname.

See Also

Configuring Panel Content

extensionHidden

A Boolean value that indicates whether the extension-hiding checkbox is visible and checked.

- requiredFileType

Returns the required file type (if any).

Deprecated
- setRequiredFileType:

Specifies the file type (as an extension) or a UTI.

Deprecated
directoryURL

The directory shown in the panel as a URL.

canSelectHiddenExtension

A Boolean value that indicates whether the panel allows the user to hide or show file extensions.

allowedFileTypes

An array of NSString objects specifying the allowed file types for the panel.

allowsOtherFileTypes

A Boolean value that indicates whether the panel allows the user to save files with an extension that’s not in the list of allowed types.

treatsFilePackagesAsDirectories

A Boolean value that indicates whether the panel displays file packages as directories.