Instance Method

addTypeIdentifiers(forAccepting:)

Expands the array of accepted UTIs for a paste configuration, based on those declared as supported by a specified class.

Declaration

func addTypeIdentifiers(forAccepting aClass: NSItemProviderReading.Type)

Parameters

aClass

A class conforming to the NSItemProviderReading protocol.

Discussion

This method uses the property readableTypeIdentifiersForItemProvider, implemented on aClass, to determine the uniform type identifiers (UTIs) to add to the paste configuration's acceptableTypeIdentifiers array.

See Also

Adding Acceptable Type Identifiers

func addAcceptableTypeIdentifiers([String])

Adds an array of UTI strings to a paste configuration, increasing the variety of types the paste configuration accepts.