Line numbers and shared text elements
Line numbers and shared text elements
- Subject: Line numbers and shared text elements
- From: Charlie Powell <email@hidden>
- Date: Tue, 06 Sep 2016 20:43:23 +0000
- Thread-topic: Line numbers and shared text elements
I'm working on adding accessibility support to our custom text editing app that has document content split across multiple pages/accessibility elements. I know that requires I implement the accessibilitySharedTextUIElements property on my objects in order to link the text of the otherwise separate elements.
As I'm about to do this, I realized that could have impact on our existing implementation related to line numbers for accessibility, e.g. accessibilityInsertionPointLineNumber. Normally, if each element doesn't share its text with other elements, then the first line of each element should have a value of 0. But if I have 2 elements linked together via accessibilitySharedTextUIElements, and if the first element has N number of lines of text, then should the first line of the second element have a value of N? Or should the first line of the second element still have a value of 0?
Looking at Pages.app (similar to my app with multiple accessibility elements to represent an entire document), it appears that the first line of each page reports a value of 0. But looking at TextEdit.app, the first line of each page is based on the number of lines throughout the entire document.
So, which approach is correct? I'm inclined to follow TextEdit's behavior since that actually seems more correct, but explicit confirmation from someone who has dealt with this previously would be greatly appreciated.
And as with almost all of my questions here, I would love to see this documented in the NSAccessibility reference, or even better a formal NSAccessibilityTextEdit protocol :)
_______________________________________________
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