FROM : Jere Gmail
DATE : Mon May 05 09:47:23 2008
Well, finally solved. No need for AXIsProcessTrusted. The problem is
that the data stored in the NSArray was comming from an CFArray and
was not printed with NSLog. But it was there.
I want to use the info to do something like witch.
Thanks a lot for your tips.
I'll post some code latter if someone ask for it. There are lots of
info to make and application accesible but no info to make an
assistive app.
On Mon, May 5, 2008 at 1:24 AM, Adam Leonard <<email_removed>> wrote:
>
> 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_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
>
--
http://zon7blog.wordpress.com/
And again we fall.
DATE : Mon May 05 09:47:23 2008
Well, finally solved. No need for AXIsProcessTrusted. The problem is
that the data stored in the NSArray was comming from an CFArray and
was not printed with NSLog. But it was there.
I want to use the info to do something like witch.
Thanks a lot for your tips.
I'll post some code latter if someone ask for it. There are lots of
info to make and application accesible but no info to make an
assistive app.
On Mon, May 5, 2008 at 1:24 AM, Adam Leonard <<email_removed>> wrote:
>
> 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_removed>)
>
> 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/<email_removed>
>
> This email sent to <email_removed>
>
--
http://zon7blog.wordpress.com/
And again we fall.
| Related mails | Author | Date |
|---|---|---|
| Jere Gmail | May 4, 00:52 | |
| Steve Christensen | May 4, 01:09 | |
| Jean-Daniel Dupas | May 4, 01:17 | |
| Jere Gmail | May 4, 11:28 | |
| Jere Gmail | May 4, 11:33 | |
| Jean-Daniel Dupas | May 4, 12:10 | |
| Chris Hanson | May 5, 01:11 | |
| Adam Leonard | May 5, 01:24 | |
| Jere Gmail | May 5, 09:47 |






Cocoa mail archive

