NSSavePanel object creates and manages a Save panel and allows you to run the panel in a modal loop. 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.
- macOS 10.10+
NSSavePanel 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.
NSSavePanel object may have a delegate. The methods that delegates of
NSSavePanel 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.