• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: List Running apps and windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List Running apps and windows


  • Subject: Re: List Running apps and windows
  • From: Adam Leonard <email@hidden>
  • Date: Sun, 4 May 2008 16:24:03 -0700


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: List Running apps and windows
      • From: "Jere Gmail" <email@hidden>
References: 
 >List Running apps and windows (From: "Jere Gmail" <email@hidden>)
 >Re: List Running apps and windows (From: Steve Christensen <email@hidden>)
 >Re: List Running apps and windows (From: Jean-Daniel Dupas <email@hidden>)
 >Re: List Running apps and windows (From: "Jere Gmail" <email@hidden>)

  • Prev by Date: Re: List Running apps and windows
  • Next by Date: Re: NSXML assistance please
  • Previous by thread: Re: List Running apps and windows
  • Next by thread: Re: List Running apps and windows
  • Index(es):
    • Date
    • Thread