Re: A Cocoa means to detect SysPref 'Enable access for assistive devices"
Re: A Cocoa means to detect SysPref 'Enable access for assistive devices"
- Subject: Re: A Cocoa means to detect SysPref 'Enable access for assistive devices"
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 23 Apr 2008 17:14:59 -0400
- Thread-topic: A Cocoa means to detect SysPref 'Enable access for assistive devices"
on 2008-04-23 4:37 PM, Peter Maurer at email@hidden wrote:
>> Is there a straight Cocoa means to detect the System Preferences/
>> Universal Access setting for 'Enable access for assistive devices'?
>
> I don't think this counts as Cocoa, but it's better than AppleScript:
> AXAPIEnabled()
You can also make your app "trusted" using the AX API, in Leopard, so that
the Universal Access preference need not be set at all. But it requires
authentication so you have to jump through a lot of hoops to implement it.
You can also set the Universal Access preference using AppleScript, in Tiger
and Leopard, without jumping through any hoops at all (because System
Preferences takes care of the authentication dialog for you). Thus, you
could use NSAppleScript or OSAKit to run a script that will set the
Universal Access setting, if you find that it is not already set.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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