Hey Josh,
On Aug 22, 2014, at 12:31 AM, Josh Scotland < email@hidden> wrote:
Hey Nick,
Thanks for putting the project up — I did a deeper investigation last night. The code looks correct.
One tip is to return a non-mutable attributed string for the NSAccessibilityAttributedStringForRangeParameterizedAttribute.
thanks, that works! At least to the point of after interacting with the text field, links are announced in the text field, and when VO cursor is on the links after interacting with the text field and moving through its words, VO-Space and VO-Shift-U work!
This is just what I was hoping for! Josh, you’re a legend.
Only thing that does not work is searching for links using VO-Cmd-L: when interacting with the text field, no next link is found and when looking for previous link, it jumps to a link in the preceding text view. If not interacting with the text field,
the whole text field is found as a link (after the links in the text view), VO-Space does not work on it but VO-Shift-U reads the address of the first link (the address is " http://en.wikipedia.org” of the link
with title “Looks”).
If I change the range of the first link in the text field to be NSMakeRange(1, 4) instead of NSMakeRange(0, 5), VO-Cmd-L does not find the link when not interacting with the text field.
I expect you’ve already tried this, but I thought I’d ask anyway: does it work any better when you implement the accessibilityArray* and accessibilityIndexOfChild: methods?
I can’t thank you enough for your help, Boris. I hope you’re able to make use of what we’ve worked out as well. :-)
-Nick
|