Puts an object in the pasteboard for the specified representation type.
- iOS 3.0+
- Mac Catalyst 13.0+
The object to be written to the pasteboard.
A string identifying the representation type of the pasteboard item. If the type is a UTI, it must be compatible with the class of
value; otherwise, nothing is written to the pasteboard.
Use this method to put an object—such as an
NSURL object—on the pasteboard. (For images, you can also use the
images properties; for all other data, such as raw binary data, use the
set method.) This method writes the object as the first item in the pasteboard. Calling this method replaces any items currently in the pasteboard.