<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSavePanel/prompt",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSavePanel(py)prompt"
  },
  "title" : "prompt"
}
-->

# prompt

The text to display in the default button.

```
var prompt: String! { get set }
```

## Discussion

The prompt appears on all [`NSSavePanel`](/documentation/AppKit/NSSavePanel) objects (or all [`NSOpenPanel`](/documentation/AppKit/NSOpenPanel) objects if this property is on an [`NSOpenPanel`](/documentation/AppKit/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)