Instance Property

showsTagField

A Boolean value that indicates whether the panel displays the Tags field.

Declaration

var showsTagField: Bool { get set }

Discussion

When the value of this property is true, the panel displays the Tags field; if false, the panel doesn’t display the Tags field. The default value is true. (Note that the Tags field is appropriate only in a Save panel.)

If you set this property to true, you are responsible for setting tag names on the resulting file after saving is complete. If you don’t set this property, macOS will automatically show the tag field and attempt to apply the tags to the file. (To set tags on files, use the NSURLTagNamesKey, described in Common File System Resource Keys.)

See Also

Configuring Panels

var accessoryView: NSView?

The custom accessory view for the current application.

var title: String!

The title of the panel.

var prompt: String!

The prompt of the default button.

var nameFieldLabel: String!

The string displayed in front of the filename text field.

var message: String!

The message text displayed in the save panel.

var canCreateDirectories: Bool

A Boolean value that indicates whether the panel allows the user to create directories.

var showsHiddenFiles: Bool

A Boolean value that indicates whether the panel displays files that are normally hidden from the user.

var tagNames: [String]?

The tag names to set on the file the user has saved.