Instance Property

prompt

The prompt of the default button.

Declaration

var prompt: String! { get set }

Discussion

The prompt appears on all NSSavePanel objects (or all NSOpenPanel objects if this property is on an NSOpenPanel instance) in your application. By default, the text in the default button is “Open” for an Open panel and “Save” for a Save panel.

It is intended that short words or phrases, such as “Open,” “Save,” “Set,” or “Choose,” be used on the button. The button is not resized to accommodate long prompts.

Since this method previously affected a title field, any colon at the end of prompt is removed.

See Also

Configuring Panels

var accessoryView: NSView?

The custom accessory view for the current application.

var title: String!

The title of the panel.

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 showsTagField: Bool

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

var tagNames: [String]?

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