write(to:ofType:for:originalContentsURL:)
Saves changes in the document’s managed object context and saves the document’s persistent store to a given URL.
Declaration
nonisolated func write(to absoluteURL: URL, ofType typeName: String, for saveOperation: NSDocument.SaveOperationType, originalContentsURL absoluteOriginalContentsURL: URL?) throwsParameters
- absoluteURL:
An URL that specifies the new location for the document store. It must not be a relative URL.
- typeName:
The document type.
- saveOperation:
The save operation type. See the “Constants” section in Nsdocument for possible values.
- absoluteOriginalContentsURL:
An URL that specifies the location of the original document store.