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