Instance Method

prepareSavePanel(_:)

Invoked by runModalSavePanel(for:delegate:didSave:contextInfo:) to do any customization of the given Save panel.

Declaration

func prepareSavePanel(_ savePanel: NSSavePanel) -> Bool

Parameters

savePanel

The Save panel.

Return Value

true if successfully prepared; otherwise, false.

Discussion

The default implementation is empty and returns true.

See Also

Handling User Actions

func printDocument(Any?)

Prints the receiver in response to the user choosing the Print menu command.

func runPageLayout(Any?)

The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command.

func revertToSaved(Any?)

The action of the File menu item Revert in a document-based app.

func save(Any?)

The action method invoked in the receiver as first responder when the user chooses the Save menu command.

func saveAs(Any?)

The action method invoked in the receiver as first responder when the user chooses the Save As menu command.

func saveTo(Any?)

The action method invoked in the receiver as first responder when the user chooses the Save To menu command.