Export to file. Need format selection.
Export to various formats.
Export is handled by NSDocument, it just takes a lot of digging in the documentation to figure out that the way to do it is to:
* use saveDocumentTo: for export
* implement saveToURL:ofType:forSaveOperation:completionHandler:
* list the supported export formats under key “NSExportableTypes” in the AQTDocument definition.
See “Sketch2” code example.