I'm developing in Visual Studio for mac using C sharp.
I'm using AXIsProcessTrustedWithOptions() to get accessibility permissions, but sometimes the behavior is strange.
Specifically, it looks like this:
Does anyone have any solutions?
I'm using AXIsProcessTrustedWithOptions() to get accessibility permissions, but sometimes the behavior is strange.
Code Block var key = new NSObject[] { FromObject("AXTrustedCheckOptionPrompt") }; var obj = new NSObject[] { FromObject((NSNumber)1) }; var options = NSDictionary.FromObjectsAndKeys(obj, key); AXIsProcessTrustedWithOptions(options.Handle);
Specifically, it looks like this:
"Accessibility Access" dialog will appear.
Click "Open System Preferences".
There isn't my app in the list and can't turn on
Does anyone have any solutions?