Instance Method

requiredFileType

Returns the required file type (if any).

Declaration

- (NSString *)requiredFileType;

Return Value

The required file type (if any).

Discussion

A file specified in the Save panel is saved with the designated filename and this file type as an extension. Examples of common file types are “rtf”, “tiff”, and “ps”. File type strings encoding HFS file types are not valid values for this attribute. An nil return value indicates that the user can save to any ASCII file.

This method is equivalent to using allowedFileTypes and returning the first element of the list of allowed types, or nil if there are none.

See Also

Configuring Panel Content

extensionHidden

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

- setRequiredFileType:

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

Deprecated
directoryURL

The directory shown in the panel as a URL.

- setDirectory:

Sets the current pathname in the panel’s browser.

Deprecated
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.