• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Gestalt or alternative?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Gestalt or alternative? (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Gestalt or alternative?
  • Next by Date: Top-10 Accessibility API Wish List
  • Previous by thread: Re: Gestalt or alternative?
  • Next by thread: Top-10 Accessibility API Wish List
  • Index(es):
    • Date
    • Thread