Thank you, I've run quick tests re: what happens when callling
CGRequestListenEventAccess()On various versions of macOS:
Results:
15.8.3 : no alert dialog
26.6.2: "MyApp would like to receive keystrokes from Any Application".When I click to OK it, the System Settings / Privacy & Seucurity / Input Monitoring pane opens up.
27.3b2 : no alert dialog
For all 3, the return code of CGRequestListenEventAcces() = false.
However, with 26.6.2, if I enable the permission, the OS helpfully offers to quit & restart the app, at which point CGRequestListenEventAccess() = true.
So, it does seem like 27.3b2 may be missing a feature that 26 has?
Note: I'm testing with an app that is not code-signed, sandboxed, or notarized, and has no entitlements in the plist.
Topic:
Privacy & Security
SubTopic:
General
Tags: