loadFileRepresentation(forTypeIdentifier:completionHandler:)
Asynchronously writes a copy of the provided, typed data to a temporary file, returning a progress object.
Declaration
func loadFileRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (URL?, (any Error)?) -> Void) -> ProgressDiscussion
This method writes a copy of the file’s data to a temporary file, which the system deletes when the completion handler returns.
See Also
Loading the provider’s contents
loadItem(forTypeIdentifier:options:completionHandler:)loadDataRepresentation(forTypeIdentifier:completionHandler:)loadDataRepresentation(for:completionHandler:)loadFileRepresentation(for:openInPlace:completionHandler:)loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)loadObject(ofClass:completionHandler:)loadObject(ofClass:completionHandler:)loadTransferable(type:completionHandler:)