Re: Adding VO-pressable links to NSTextField
Re: Adding VO-pressable links to NSTextField
- Subject: Re: Adding VO-pressable links to NSTextField
- From: Josh Scotland <email@hidden>
- Date: Thu, 21 Aug 2014 15:31:22 -0700
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.
When I use an NSTextView instead of an NSTextField, your code works. Please file a bug about adding AXLink support for NSTextFields.
Josh
On Aug 20, 2014, at 1:46 PM, Nick Kocharhook < email@hidden> wrote:
Absolutely, here it is:
Thanks for the link. I immediately noticed all the accessibilityArray* methods. It’s a bummer to learn that implementing those doesn’t fix the problem. :-(
Happy to accept pull requests, as well. I really appreciate you taking the time to suggest solutions. I’m glad to know that this has been done before and that I’ll eventually get to the bottom of it!
-Nick
On Aug 20, 2014, at 19:36, Boris Dušek < email@hidden> wrote:
I did hide `NSAccessibilityLinkTextAttribute ` there under `TATTR(Link)`, TATTR is a macro… :-)
I implemented links there as custom objects as well (subclass of NSObject).
I tried to implement most of the differences between my code mentioned above and your sample code (i.e. implementing the accessibilityArray* and accessibilityIndexOfChild: methods on the TextFieldCell, implementing accessibilityHitTest: and accessibilityFocusedUIElement
on the LinkProxyObject, implementing position and size properly for LinkProxyObject etc.), all to no avail.
One thing I wanted to suggest/ask - would it be possible for you (and would you be willing) to put the sample code on github? So that the progress is tracked properly and I could submit pull requests with my improvements? (There is always possibility to
send a link to download zipped version of any commit for GitHub repositories -
https://github.com/<user>/<repo>/archive/<commit-sha1>.zip)
|
_______________________________________________
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