This gives access to the pasteboard.
general_pasteboard()
Returns the Objective-C representation of the general pasteboard.
string()
Returns the text contained in the pasteboard.
strings()
Returns all strings contained in the pasteboard.
set_string(text)
Copy the given text to the pasteboard.
text: The text to copy.
set_strings(array)
Copy the given strings to the pasteboard.
array: A list of strings to copy.
image()
Returns the image contained in the pasteboard as an Objective-C UIImage
.
images()
Returns all images contained in the pasteboard as Objective-C UIImage
s.
set_image(image)
Copy the given image to the pasteboard.
image: The image to copy.
set_images(array)
Copy the given images to the pasteboard.
array: A list of images to copy.
url()
Returns the URL contained in the pasteboard as an Objective-C NSURL
.
urls()
Returns all URLs contained in the pasteboard as Objective-C NSURL
s.
set_url(url)
Copy the given URL to the pasteboard.
url: The Objective-C NSURL
to copy.
set_urls(array)
Copy the given URLs to the pasteboard.
array: A list of Objective-C NSURL
s to copy.