Instance Method

loadDataRepresentationForTypeIdentifier:completionHandler:

Asynchronously copies the provided, typed data into an NSData object, returning an NSProgress object.

Declaration

- (NSProgress *)loadDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier completionHandler:(void (^)(NSData *data, NSError *error))completionHandler;

Discussion

If the source app provides a folder URL, the NSData object contains a zip archive with the folder as its top-level entry.

See Also

Getting the Item’s Data

- canLoadObjectOfClass:

Returns a Boolean value indicating whether an item provider can load objects of a given class.

- hasItemConformingToTypeIdentifier:

A convenience method equivalent to the hasRepresentationConformingToTypeIdentifier:fileOptions: method, but with the fileOptions parameter set to a value of 0.

- loadItemForTypeIdentifier:options:completionHandler:

Loads the item’s data and coerces it (as needed) to the specified type.

- loadFileRepresentationForTypeIdentifier:completionHandler:

Asynchronously writes a copy of the provided, typed data to a temporary file, returning an NSProgress object.

- loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:

Asynchronously opens a file in place, if doing so is possible, returning an NSProgress object.

- loadObjectOfClass:completionHandler:

Asynchronously loads an object of a specified class to an item provider, returning an NSProgress object.

- hasRepresentationConformingToTypeIdentifier:fileOptions:

Returns a Boolean value indicating whether an item provider contains a data representation conforming to a specified uniform type identifier (UTI) and to specified open-in-place behavior.

- registeredTypeIdentifiersWithFileOptions:

Returns an array with a subset of type identifiers for the item provider, according to the specified file options, listed in the same order in which they were registered.