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

PreFab Software - www.prefabsoftware.com


_______________________________________________

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]

Reply via email to