Instance Property

canSelectHiddenExtension

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

Declaration

var canSelectHiddenExtension: Bool { get set }

Discussion

When the value of this property is true, the panel allows the user to hide or show extensions; if false, it does not. The default value is false.

This property must be set before the panel is displayed. If set to true, the isExtensionHidden property can be used to get and set the value of the checkbox that hides or shows extensions.

See Also

Configuring Panel Content

var isExtensionHidden: Bool

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

var directoryURL: URL?

The directory shown in the panel as a URL.

var allowedFileTypes: [String]?

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

var allowsOtherFileTypes: Bool

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.

var treatsFilePackagesAsDirectories: Bool

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