Skip navigation.
 
mlRe: A Cocoa means to detect SysPref 'Enable access for assistive devices"
FROM : Bill Cheeseman
DATE : Wed Apr 23 23:14:59 2008

on 2008-04-23 4:37 PM, Peter Maurer at <email_removed> 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_removed>
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com

Related mailsAuthorDate
mlA Cocoa means to detect SysPref 'Enable access for assistive devices" Steve Cronin Apr 23, 22:21
mlRe: A Cocoa means to detect SysPref 'Enable access for assistive devices" Peter Maurer Apr 23, 22:37
mlRe: A Cocoa means to detect SysPref 'Enable access for assistive devices" Bill Cheeseman Apr 23, 23:14