Sets the data as the representation for the specified type for the first item on the receiver.
- macOS 10.0+
The data to write to the pasteboard.
The type of data in the
dataparameter. The type must have been declared by a previous
true if the data was written successfully, otherwise
false if ownership of the pasteboard has changed. Any other error raises an