Application name in AXIsProcessTrustedWithOptions alert
Application name in AXIsProcessTrustedWithOptions alert
- Subject: Application name in AXIsProcessTrustedWithOptions alert
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 21 Mar 2014 14:04:51 -0400
In Mavericks, the system alert presented by the new AXIsProcessTrustedWithOptions function usually names the application that calls the function as the application that must be granted access in the Accessibility list in the Privacy tab of Security & Privacy preferences.
However, when I am running the application in Xcode during development, the alert names "Xcode" as the application that must be granted access. And, indeed, granting access to Xcode allows the application to use accessibility functions during development.
How does the system determine that Xcode is the application that must be granted access? I asked this question a while ago and don't recall getting a definitive answer. Today, I have explored whether the AXIsProcessTrustedWithOptions function gets the parentPSN of the application by calling the ProcessInformationCopyDictionary function, or whether it gets the Unix parent process by calling the getppid function. Neither of them seems to do the job.
Does anybody know how the system determines what application must be granted access in these circumstances? |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden