Re: Gestalt or alternative?
Re: Gestalt or alternative?
- Subject: Re: Gestalt or alternative?
- From: Matthew Formica <email@hidden>
- Date: Mon, 09 Sep 2002 13:25:57 -0700
Let me put it this way: if you are using the accessibility APIs and you're
mach-o, don't even worry about it, because if your app even launches it
means the accessibility APIs are available. :-) Your app will fail to
launch if the APIs aren't available at runtime (like if you're running on
10.1). You could weak link against the accessibility APIs and do a symbol
== NULL test (actually this might be nice for future compatibility), but
weak linking was added in 10.2, so if you use weak linking, your binary
won't run on 10.1 anyway. :-(
- Matthew
On 9/9/02 1:14 PM, "Eric Schlegel" <email@hidden> wrote:
>
On Monday, September 9, 2002, at 11:44 AM, Raymond Fischer wrote:
>
>
> I notice a lack of any (obvious) gestalt constants to determine if
>
> accessibility
>
> is available. The AXAPIEnabled() call tells me if accessibility is
>
> currently
>
> enabled, but I don't see anything that will tell me if accessibility
>
> is available.
>
> Do I check the system version, or is there something not obvious that
>
> I'm missing?
>
>
If you're CFM, use a t-vector test to determine if one of the AX APIs
>
is available.
>
>
If you're mach-o, use CFBundleGetFunctionPointerForName to check if you
>
can load one of AX APIs from a CFBundleRef for
>
ApplicationServices.framework.
>
>
-eric
>
_______________________________________________
>
accessibility-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.