addGlobalMonitorForEventsMatchingMask not working
问题 I am having trouble with getting an assistive-enabled application (XCode in the development case) to capture global keyDown events. I've seen lots of code examples like the below, but this doesn't work for me on 10.9.4. #import <AppKit/AppKit.h> #import <Foundation/Foundation.h> // 10.9+ only, see this url for compatibility: // http://stackoverflow.com/questions/17693408/enable-access-for-assistive-devices-programmatically-on-10-9 BOOL checkAccessibility() { NSDictionary* opts = @{(__bridge