Adding VO-pressable links to NSTextField
Adding VO-pressable links to NSTextField
- Subject: Adding VO-pressable links to NSTextField
- From: Nick Kocharhook <email@hidden>
- Date: Fri, 15 Aug 2014 13:25:42 +0000
- Thread-topic: Adding VO-pressable links to NSTextField
I’m trying to make links in an NSTextFieldCell subclass accessible to VoiceOver in the same way as they work in NSTextViews. I’m hoping for the “link” spoken text and the press action. We’ve got potentially tens of these on screen at a time, so we’re currently
using the much lighter-weight NSTextField instead of NSTextView. There’s also no need for scrolling or for editing, so NSTextView really would be overkill.
James outlined a way to get VO links in a StaticText, he thought, in 2008:
I did most of what he suggested, and I’ve succeeded in getting the text field to report children which appear in the Accessibility Inspector. The children aren’t correctly placed because I haven’t done the work to properly determine the glyph rects of
the links as laid out. But their rects ARE contained in the rect of the AXStaticText.
Unfortunately, I still can’t find them when using VoiceOver. :-( Here is the sample project I’ve been working on. All the code is in STAAccessibleLinkTextField:
As you can see, both selection and rich text are on. This allows the links to have the pointing finger on hover, as described in this Technical Q&A:
Please let me know what I’m missing! I feel like I should be there already, but it doesn’t quite work yet…
Thanks very much in advance,
-Nick
|
_______________________________________________
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