监控剪贴板活动可可? [英] Monitor clipboard activity cocoa?
本文介绍了监控剪贴板活动可可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在可可中观看用户剪贴板吗?
Is it possible to "watch" a users clipboard in cocoa?
例如,如果我的应用程序是系统托盘风格的应用程序,如dropbox客户端可以订阅
For example if my app was a system tray style app like the dropbox client could i subscribe to events raised when a user hits copy / paste in another app?
推荐答案
您可以随时查看Apple的示例代码, ClipboardViewer 。它与你想要做的事情有点类似。
You could always check out Apple's sample code, ClipboardViewer. It does something sort of similar to what you're trying to do.
这篇关于监控剪贴板活动可可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文