Instance Property

allowsMultipleSelection

A Boolean that indicates whether the panel’s browser allows the user to open multiple files (and directories) at a time.

Declaration

var allowsMultipleSelection: Bool { get set }

Discussion

When the value of this property is true, the panel’s browser allows multiple selection.

If multiple files or directories are allowed, then the filename method—inherited from NSSavePanel—returns a non-nil value only if one and only one file is selected. By contrast, NSOpenPanel’s urls property always returns the URLs of the selected files, even if only one file is selected.

See Also

Configuring Panels

var canChooseFiles: Bool

A Boolean that indicates whether the panel allows the user to choose files to open.

var canChooseDirectories: Bool

A Boolean that indicates whether the panel allows the user to choose directories to open.

var resolvesAliases: Bool

A Boolean that indicates whether the panel resolves aliases.