• 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
Question about proper use of NSAccessibility APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about proper use of NSAccessibility APIs


  • Subject: Question about proper use of NSAccessibility APIs
  • From: "Brant Sears" <email@hidden>
  • Date: Tue, 10 Jan 2006 12:55:39 -0500
  • Thread-topic: Question about proper use of NSAccessibility APIs

Title: Question about proper use of NSAccessibility APIs

Hi. This is kind of a Cocoa-centric question, so I hope it is OK to post it here.

When I use the "Accessibility Verifier" application, I get some warnings about missing AXDescription. I went into Interface Builder and added descriptions and help info for all of the buttons in my nib files. However, I also have an NSMatrix that contains a group of NSButtonCell controls. I need to add the AXDescription and help information programatically. I am trying to use the following:

[myCell accessibilitySetValue: myDescriptionString forAttribute:NSAccessibilityTitleAttribute];
[myCell accessibilitySetValue: myHelpString forAttribute:NSAccessibilityHelpAttribute];

where myCell is an NSButtonCell * and myDescriptionString/myHelpString are NSString *.

The problem is that this causes an exception to be raised. Obviously I am doing something wrong here. I'm guessing that if I call accessibilityIsAttributeSettable: using these attributes on my button cells, I will find that these attributes are not settable.

So, my question is, "What is the right thing to do?" to accomplish the goal of having an app that correctly provides the hooks for Accessibility.

Brant Sears

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question about proper use of NSAccessibility APIs
      • From: Mike Engber <email@hidden>
  • Prev by Date: MacOS Accessability Questions
  • Next by Date: Re: Question about proper use of NSAccessibility APIs
  • Previous by thread: MacOS Accessability Questions
  • Next by thread: Re: Question about proper use of NSAccessibility APIs
  • Index(es):
    • Date
    • Thread