Accessibility/Comparisons:ATK To UA: Difference between revisions

links
No edit summary
(links)
Line 42: Line 42:
* Get the styled text of a range (as an NSAttributedText object)
* Get the styled text of a range (as an NSAttributedText object)
* Get the range for a line, or an index, or all visible characters
* Get the range for a line, or an index, or all visible characters
etc.
In other words, contrary to ATK, text runs themselves do not contain accessible objects.
 
== Links (AtkHyperlink) ==
In UA there's the AXLink role for links (10.4+). Then there's a AXTextLink subrole, and WebKit even defines a custom AXImageMap role for image maps. They also define an AXURL attribute on those links that gives the URL as a string.
 
For links, the actual linkified object (an image, a text) seems to be a child of an AXLink object in the hierarchy. So some text + an image would be children of the AXLink object.
 
From WebKit's code, it appears that another extension is an AXVisited attribute that links (and other objects) can have, when they have been visited. ([[Mac:Accessibility/UniversalAccess:Webkit|All WebKit extensions can be found here]].)
 
Links usually sport the [http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSAccessibility_Protocol/Reference/Reference.html#//apple_ref/doc/c_ref/NSAccessibilityPressAction AXPressAction] (just like buttons).
107

edits