setData(_:forType:)
Sets the value for a specified type as a data object.
Declaration
func setData(_ data: Data, forType type: NSPasteboard.PasteboardType) -> BoolParameters
- data:
An
NSDataobject containing the value for the representation specified bytype. - type:
A uniform type identifier string.