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 the File Types

allowedFileTypes

An array of filename extensions or UTIs that represent the allowed file types for the panel.

allowsOtherFileTypes

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

treatsFilePackagesAsDirectories

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

NSSavePanelAuxiliaryOpaque

A private data structure used internally by the Save panel.