No, it is not possible for you to get a call back every time an NSPasteboard is updated. However, you can use the NSPasteboardChangedNotification notification to detect changes in the pasteboard. You can register for this notification using the NSNotificationCenter. When the notification is triggered, you can then get the updated contents of the pasteboard using the NSPasteboard class.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-09-27 11:00:00 +0000
Seen: 7 times
Last updated: Mar 01
How can I initiate a call on Asterisk using Originate and a customized caller ID?
How do you call a method in a custom view from a ViewModel?
What could be the reason for receiving a 404 Not Found error while attempting to make an API call?
Is it possible to call a get method inside a method from a different class within the main function?
What is the API for identifying callers in MS Teams?
What is the solution for the error "Call to undefined method Elementor\Widgets_Manager::register()"?
Is it possible for data to be sent multiple times using XMLHttpRequest?
Is it possible to not get any results when using Strings.Instr or IndexOf to search for a substring?