Sets the given string as the representation for the specified type for the first item on the receiver.
- macOS 10.0+
The string to write to the pasteboard.
The type of string data. 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
This method invokes
set to perform the write.