Instance Method

registerDataRepresentationForTypeIdentifier:visibility:loadHandler:

Registers a data-backed representation for an item, specifiying item visibility and a load handler.

Declaration

- (void)registerDataRepresentationForTypeIdentifier:(NSString *)typeIdentifier visibility:(NSItemProviderRepresentationVisibility)visibility loadHandler:(NSProgress * _Nullable (^)(void (^completionHandler)(NSData *data, NSError *error)))loadHandler;

See Also

Providing the Item’s Data

- registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:

Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler.

- registerObject:visibility:

Adds representations of a specified object to an item provider, based on the object’s implementation of the NSItemProviderWriting protocol and adhering to a visibility specification.

- registerObjectOfClass:visibility:loadHandler:

Lazily adds representations of a specified object to an item provider, based on the object’s implementation of the NSItemProviderWriting protocol and adhering to a visibility specification.

suggestedName

The filename to use when writing the provided data to a file on disk.