A Save panel that you can run in a modal loop.
- macOS 10.0+
The Save panel provides a simple way for a user to specify a file to use when saving a document or other data. It can restrict the user to files of a certain type, as specified by an extension. An
NSSave object manages a panel that allows users to specify the directory and name under which a file is saved. It supports browsing of the file system, and it accommodates custom accessory views.
NSSave object may have a delegate. The methods that
NSSave delegates may implement are specified by the
In a sandboxed app, when a user saves a document, the Save dialog is presented by the powerbox, not AppKit. macOS then adds the saved file to the app’s sandbox (if necessary) to allow the app to write to the file.