Changes between Initial Version and Version 1 of Ticket #11, comment 2
- Timestamp:
- 04/18/13 17:50:29 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11, comment 2
initial v1 13 13 The [http://developer.apple.com/carbon/pasteboards.html apple pasteboards doc] seems to have sync methods, but none that would call back to us whenever the clipboard's contents changes so we may have to poll it whenever we get a clipboard message from the server or when the application becomes (in)active. (via {{{NSApplicationWillResignActive}}} / {{{NSApplicationDidBecomeActive}}}) 14 14 See [http://developer.apple.com/library/mac/#documentation/Carbon/Reference/Pasteboard_Reference/Reference/reference.html#//apple_ref/c/func/PasteboardSynchronize PasteboardSynchronize] and [http://developer.apple.com/library/mac/#documentation/Carbon/Reference/Pasteboard_Reference/Reference/reference.html#//apple_ref/c/func/PasteboardSetPromiseKeeper SetPromiseKeeper]. 15 The only python code I can find that does anything remotely similar is [http://www.koders.com/python/fid730FD8116A444260603FA3A49AEB30DB6B3E02BD.aspx clipboard/carbon.py]which uses pyglet.. not keen on adding yet-another-dependency, but may have to.15 The only python code I can find that does anything remotely similar is {{{clipboard/carbon.py}}} (now dead link) which uses pyglet.. not keen on adding yet-another-dependency, but may have to.