loadObject(ofClass:completionHandler:)
Asynchronously loads an object of a specified class to an item provider, returning a progress object.
Declaration
func loadObject(ofClass aClass: any NSItemProviderReading.Type, completionHandler: @escaping @Sendable ((any NSItemProviderReading)?, (any Error)?) -> Void) -> ProgressSee Also
Loading the provider’s contents
loadItem(forTypeIdentifier:options:completionHandler:)loadDataRepresentation(forTypeIdentifier:completionHandler:)loadDataRepresentation(for:completionHandler:)loadFileRepresentation(forTypeIdentifier:completionHandler:)loadFileRepresentation(for:openInPlace:completionHandler:)loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)loadObject(ofClass:completionHandler:)loadTransferable(type:completionHandler:)