Re: [w3c/clipboard-apis] Async clipboard read and race conditions. (Issue #180)

> @whsieh Re: [changeCount](https://developer.apple.com/documentation/appkit/nspasteboard/1533544-changecount?language=objc), does it change when the clipboard content changes or does is it only change whenever there is an ownership change? On Windows, the [sequence numbers](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getclipboardsequencenumber) changes whenever the [clipboard content changes](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getclipboardsequencenumber#remarks).

I see — yeah, `changeCount` is only changed when the pasteboard owner changes. That said, there may be other system APIs that would allow us to determine when the pasteboard contents change on macOS and iOS (on macOS, it's possible to read the _generation_ count, whereas on iOS, a global notification is dispatched when the clipboard changes content).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/180#issuecomment-1212108096

You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/180/1212108096@github.com>

Received on Thursday, 11 August 2022 14:58:16 UTC