Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I report a custom NSWindow title to the accessibility system?

I've got an Inspector window whose title (sometimes) isn't ideal for reporting to visually impaired users. Is there a way to change the title reported by accessibility without changing the actual window title?

e.g. a window titled "Media" might be better reported to visually impaired users as "Media Browser"

like image 462
Mike Abdullah Avatar asked Dec 17 '25 04:12

Mike Abdullah


1 Answers

You want to set the override value for the window's title. So assuming your window is stored in myWindow you want:

[myWindow accessibilitySetOverrideValue:@"Media Browser"
                           forAttribute:(NSString *)kAXTitleAttribute];
like image 190
Martin Pilkington Avatar answered Dec 19 '25 19:12

Martin Pilkington



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!