---
title: "prepareSavePanel(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/preparesavepanel(_:)"
---

# prepareSavePanel(_:)

Tells the document to customize the specified Save panel.

## Declaration

```swift
func prepareSavePanel(_ savePanel: NSSavePanel) -> Bool
```

## Parameters

- `savePanel`: The Save panel.

## Return Value

Return Value true if successfully prepared; otherwise, false.

## Discussion

Discussion The default implementation is empty and returns true.

## See Also

### Presenting a Save Panel

- [runModalSavePanel(for:delegate:didSave:contextInfo:)](appkit/nsdocument/runmodalsavepanel(for:delegate:didsave:contextinfo:).md)
- [shouldRunSavePanelWithAccessoryView](appkit/nsdocument/shouldrunsavepanelwithaccessoryview.md)
- [fileTypeFromLastRunSavePanel](appkit/nsdocument/filetypefromlastrunsavepanel.md)
- [fileNameExtensionWasHiddenInLastRunSavePanel](appkit/nsdocument/filenameextensionwashiddeninlastrunsavepanel.md)
