Contents

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) -> Progress

Discussion

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