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.
Asked: 2021-09-27 11:00:00 +0000
Seen: 11 times
Last updated: Mar 01 '23