Programmatically determine if "enable access for assistive devices" is checked in Cocoa app

Viewed 4370

Cocoa apps using the NSAccessibility API require "enable access for assistive devices" to be checked in the Universal Access pref pane. I've seen many apps pop a warning if this is disabled when they run. How do I programmatically check if this is enabled so I can show a warning in my app?

2 Answers
Related