---
title: "setDefaultButtonTitle(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsprintpanel/setdefaultbuttontitle(_:)"
---

# setDefaultButtonTitle(_:)

Sets the title of the Print panel’s default button.

## Declaration

```swift
func setDefaultButtonTitle(_ defaultButtonTitle: String?)
```

## Parameters

- `defaultButtonTitle`: The string to use for the button title.

## Discussion

Discussion You can use this method to change the default button title from “Print” to something more appropriate for your usage of the panel. For example, if you are using the Print panel to save a representation of the document to a file, you might change the title to “Save”.

## See Also

### Customizing the Panel

- [jobStyleHint](appkit/nsprintpanel/jobstylehint-swift.property.md)
- [NSPrintPanel.JobStyleHint](appkit/nsprintpanel/jobstylehint-swift.struct.md)
- [options](appkit/nsprintpanel/options-swift.property.md)
- [NSPrintPanel.Options](appkit/nsprintpanel/options-swift.struct.md)
- [defaultButtonTitle()](appkit/nsprintpanel/defaultbuttontitle().md)
- [helpAnchor](appkit/nsprintpanel/helpanchor.md)
