pub fn save_document_as(window: &NSWindow, path: &Path) -> Result<()>
Saves the document in window to path (Save As… without the panel); it then belongs to that file.
window
path