How can I report the custom NSWindow header to the accessibility system?

I have an Inspector window whose name (sometimes) is not ideal for communicating to visually impaired users. Is there a way to change the title reported by availability without changing the actual title of the window?

eg. a window called "Media" may be better reported to visually impaired users as a "Media Browser"

+3
source share
1 answer

You want to set an override value for the window title. Therefore, if your window is stored in myWindow, you want:

[myWindow accessibilitySetOverrideValue:@"Media Browser"
                           forAttribute:(NSString *)kAXTitleAttribute];
+3
source

Source: https://habr.com/ru/post/1782928/


All Articles