Instance Property

prompt

The prompt of the default button.

Declaration

@property(copy) NSString *prompt;

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

accessoryView

The custom accessory view for the current application.

title

The title of the panel.

nameFieldLabel

The string displayed in front of the filename text field.

message

The message text displayed in the save panel.

canCreateDirectories

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

showsHiddenFiles

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

delegate

The panel’s delegate.

showsTagField

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

tagNames

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