Re: Custom table cells and NSAccessibilityExceptions
Re: Custom table cells and NSAccessibilityExceptions
- Subject: Re: Custom table cells and NSAccessibilityExceptions
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 11 May 2010 09:03:23 -0400
On May 11, 2010, at 7:10 AM, Christiaan Hofman wrote:
> Can anyone tell me precisely WHICH (parameterized) attributes the roles like AXStaticText and AXTextArea are supposed to implement and how they are supposed to be related? I can certainly not find it in the documentation (yes, I did read them).
I'm not sure exactly what you're asking, but you might be able to figure out the answers from UI Browser and its documentation. <http://prefabsoftware.com/uibrowser>.
I designed UI Browser so that, when you hit a UI Browser hot key while the cursor is over a character in a text field or text area, the parameterized text attributes in the Attributes drawer are automatically filled in based on the range of the Unicode glyph under the cursor and the range of the line of text under the cursor. You can extract the index of the character or line within the containing text object from the range, then pass the index or the range to other parameterized attributes depending on the type of parameter they require. This allows you to set up all the parameterized text attribute values by cascading through up to three logical layers. For example, UI Browser assumes that you want information about the line of text in which the character under the cursor appears, rather than the word, the paragraph or the entire text object. From the line index, it then gets other parameterized values relating to the line under the cursor; and from the character index, it gets still others based on the character under the cursor (such as the range of the style run in which that character appears).
UI Browser also allows you to set an arbitrary parameter value for any of the parameterized text attributes, so you can experiment and see how various parameter values affect the output of any of the parameterized text attribute functions.
In general, I think a text UI element like AXTextArea should implement all of the parameterized text attributes, as well as the non-parameterized text attributes. As far as I know, standard Cocoa and Carbon text views do that for you.
--
Bill Cheeseman - email@hidden
_______________________________________________
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