Automatically add applications to system prefs> Security and privacy> Availability in OS X 10.9

My application should be added to the list of applications under "System Prefs"> "Security and Privacy"> "Accessibility". In older versions of OSX, this was called access for assistive devices. I do the following:

NSDictionary *options = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:(NSString *)kAXTrustedCheckOptionPrompt]; AXIsProcessTrustedWithOptions((CFDictionaryRef)options); 

As expected, a dialog box appears asking you to deny access or open system prefs and seems to work fine. But my application is not automatically added to the list of applications in the system files. Many other applications already exist (Xcode, Google Software Updater), and I did not add them manually, so I know that there is a programmatic way to add an application to this liset.

Is there any other challenge I need to make this happen? Users will not understand to drag an icon to this list.

+6
source share

Source: https://habr.com/ru/post/958679/


All Articles