Fix error on pasteboard
@@ -40,13 +40,13 @@ def string():
"""
Returns the text contained in the pasteboard.
"""
- return str(generalPasteboard().string)
+ return str(general_pasteboard().string)
def strings():
"""
Returns all strings contained in the pasteboard.
"""
- return generalPasteboard().strings
+ return general_pasteboard().strings
def set_string(text):
"""
@@ -55,7 +55,7 @@ def set_string(text):
Args:
text: The text to copy.
"""
- generalPasteboard().string = text
+ general_pasteboard().string = text
def set_strings(array):
"""
@@ -64,7 +64,7 @@ def set_strings(array):
Args:
array: A list of strings to copy.
"""
- generalPasteboard().strings = array
+ general_pasteboard().strings = array
# MARK: - Images
@@ -72,13 +72,13 @@ def image():
"""
Returns the image contained in the pasteboard as an Objective-C `UIImage`.
"""
- return generalPasteboard().image
+ return general_pasteboard().image
def images():
"""
Returns all images contained in the pasteboard as Objective-C `UIImage`s.
"""
- return generalPasteboard().image
+ return general_pasteboard().image
def set_image(image):
"""
@@ -87,7 +87,7 @@ def set_image(image):
Args:
image: The image to copy.
"""
- generalPasteboard().image = text
+ general_pasteboard().image = text
def set_images(array):
"""
@@ -96,7 +96,7 @@ def set_images(array):
Args:
array: A list of images to copy.
"""
- generalPasteboard().images = array
+ general_pasteboard().images = array
# MARK: - URLs
@@ -104,13 +104,13 @@ def url():
"""
Returns the URL contained in the pasteboard as an Objective-C `NSURL`.
"""
- return generalPasteboard().url
+ return general_pasteboard().url
def urls():
"""
Returns all URLs contained in the pasteboard as Objective-C `NSURL`s.
"""
- return generalPasteboard().urls
+ return general_pasteboard().urls
def set_url(url):
"""
@@ -119,7 +119,7 @@ def set_url(url):
Args:
url: The Objective-C `NSURL` to copy.
"""
- generalPasteboard().url = url
+ general_pasteboard().url = url
def set_urls(array):
"""
@@ -128,4 +128,4 @@ def set_urls(array):
Args:
array: A list of Objective-C `NSURL`s to copy.
"""
- generalPasteboard().urls = array
+ general_pasteboard().urls = array
