Re: Adding VO-pressable links to NSTextField
Re: Adding VO-pressable links to NSTextField
- Subject: Re: Adding VO-pressable links to NSTextField
- From: Nick Kocharhook <email@hidden>
- Date: Fri, 15 Aug 2014 17:43:51 +0000
- Thread-topic: Adding VO-pressable links to NSTextField
On Aug 15, 2014, at 15:10, Boris Dušek <email@hidden> wrote:
> Looking at the code, it seems you made the typical mistake people do when working with AXAttributedStringForRange - the range of the string you are returning starts at 0, but it is relatively positioned at [parameter rangeValue].location offset in the global string value. You have to take that into account.
>
That’s fantastic, Boris, thank you so much for the hand! I haven’t dealt with the paramaterized methods before, so I’m not surprised I made a newbie mistake. :-)
> You could also use std::map of link proxies to have more effective search of the link proxies, but that would pay off only for really large texts.
Well, they’re already in an NSDictionary mapped by their ranges. I see now, though, that the link enumeration is far less efficient than it should be because it’s always stepping through all the links. I think the solution to that is to build the relevant proxy objects when they’re requested instead of caching them.
> So not there yet, but definitely some progress already :-)
Yes indeed! Thanks again,
-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