On May 4, 2008, at 2:28 AM, Jere Gmail wrote:
I have implemented this code:
if(!AXAPIEnabled ())
{
NSLog(@"API not enabled");
return;
}
if(!AXIsProcessTrusted ())
{
NSLog(@"PROCESS not trusted");
}
And it enters the second if, so my app is not trusted. I have tried
using
AXMakeProcessTrusted((CFStringRef)path);
But it wont do anything, no matter if I relaunch or not.
Guesses?
You need to be running as root to call AXMakeProcessTrusted().
I wrote a post on my blog with some code to do that: http://caffeinatedcocoa.com/blog/?p=12
(look towards the bottom)
Adam Leonard
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]