Instance Property

prompt

The text to display in 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.

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

See Also

Configuring the Panel's Appearance

title

The title of the panel.

message

The message text displayed in the panel.

nameFieldLabel

The label text displayed in front of the filename text field.

nameFieldStringValue

The user-editable filename currently shown in the name field.

directoryURL

The current directory shown in the panel.

accessoryView

The custom accessory view for the current app.

showsTagField

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

tagNames

The tag names that you want to include on a saved file.