Community
Participate
Working Groups
One more aspect of SWT Accessibility is that if a control has a Label preceding it in the z-order, and if it hasn't otherwise specified its accessible name, then the preceding Label is used as its accessible name. This is an artifact of default MSAA behavior. To see where this is implemented in SWT Carbon, look at Label.addRelation() and its senders in Control, and their senders. Also, look at all implementors of isDescribedByLabel(). You'll also need to implement Control.addRelation(), Control.removeRelation(), and Label.removeRelation(). I think that's it... Run ControlsWithLabelsExample for testing.
Fixed > 20081105. The code is essentially the same as it was in Carbon, but slightly more complicated by Cocoa's use of NSCell to provide the accessibility information for the control.