Initializer

init(forAccepting:)

Initializes a new paste configuration with the UTIs declared as supported by a specified class.

Declaration

convenience init(forAccepting aClass: NSItemProviderReading.Type)

Parameters

aClass

A class conforming to the NSItemProviderReading protocol.

Return Value

A paste configuration initialized with acceptable uniform type identifiers (UTIs) supported by the specified class.

Discussion

When you use this initializer, the property readableTypeIdentifiersForItemProvider, implemented on aClass, is used to determine the acceptable UTIs.

See Also

Initializing a Paste Configuration

init()

Initializes a new paste configuration.

init(acceptableTypeIdentifiers: [String])

Initializes a new paste configuration with a specified array of acceptable UTIs.