I have a NSTouchBar
with an item whose view is a NSSegmentedControl
that has 4 items - A, B, C, D. For a person with sight, it makes sense, but for a person who uses VoiceOver, just saying "A", "B", "C" or "D" isn't a great experience - they may not understand what exactly does that do, so I'd like to change the accessibility titles to "Select A", "Perform B", "Open C", "Show D".
AFAIK, the NSSegmentedControl
doesn't have any methods on setting custom accessibility titles, so I've dug deeper - it seems that it creates a subview for each of the segments (NSSegmentItemView
, but it's not important) - so I've tried:
- setting the
isAccessibilityElement
totrue
on the segmented control itself - for each of the subviews, I've set it to
true
as well, and I've tried setting accessibility title, label, ... Pretty much anything that would help.
Unfortunately I can set anything I want on these and VoiceOver will ignore it. The issue is complicated by the fact that the Accessibility Inspector doesn't work on the Touch Bar window...
Does anyone have any ideas?