I have an app that uses a (perfectly user-benevolent) system-wide keyboard hook for accessibility purposes.
When the app starts up, I check if the "Enable Access for Assistive Devices" setting is checked, as asked by someone else here: Programmatically determine if "enable access for assistive devices" is checked in Cocoa app
My problem is that, even after Enabling Access via the checkbox, the app continues to run without those privileges. How do I give the (currently running) app the privileges and get the keyboard hook working? Do I need to restart the app?