Instance Method

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.

Declaration

- (void)registerObject:(id<NSItemProviderWriting>)object visibility:(NSItemProviderRepresentationVisibility)visibility;

Discussion

If a representation for a given UTI is already registered, it is preserved (specifically, duplicate representations are ignored).

See Also

Providing the Item’s Data

- registerDataRepresentationForTypeIdentifier:visibility:loadHandler:

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

- registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:

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

- 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.