Reputation: 353
The Mac OS X 10.9 has Accessibility settings moved to different pane, now its been moved into security and privacy and it is per app based kindly look at the following screenshot ,
If we want our app to have enabled Accessibility feature then we can drag and drop it , but however being developer how to add our application to this list?? any one faced similar problem can help .
Upvotes: 1
Views: 1780
Reputation: 34983
In OS X 10.9 Mavericks, AXAPIEnabled()
has been deprecated.
AXIsProcessTrustedWithOptions
can be used instead:
NSDictionary *options = @{(id)kAXTrustedCheckOptionPrompt : @YES};
BOOL accessibilityEnabled = AXIsProcessTrustedWithOptions((CFDictionaryRef)options);
If you pass in YES
for kAXTrustedCheckOptionPrompt
, the system will show the user a helpful dialog with a link to the correct Security & Privacy pane in System Preferences:
"YourApp.app would like to control this computer using accessibility features."
Upvotes: 6