pasteboard(_:item:provideDataForType:)
Asks the receiver to provide data for a specified type to a given pasteboard.
Declaration
nonisolated func pasteboard(_ pasteboard: NSPasteboard?, item: NSPasteboardItem, provideDataForType type: NSPasteboard.PasteboardType)Parameters
- pasteboard:
A pasteboard to which the receiver has promised to provide data.
- item:
A pasteboard item for which the receiver has promised to provide data
- type:
A UTI type string.
Discussion
The receiver was previously set as the provider using setDataProvider(_:forTypes:).