read(from:ofType:)
Sets the contents of the receiver by reading from a file of a given type located by a given URL.
Declaration
nonisolated func read(from absoluteURL: URL, ofType typeName: String) throwsParameters
- absoluteURL:
An URL that specifies the location from which to read the document.
- typeName:
The document type at
absoluteURL.
Discussion
This method sets the URL for the persistent object store associated with the receiver’s managed object context to absoluteURL.