Re: AXTextArea AXValueCGSize AXValueCGPoint
Re: AXTextArea AXValueCGSize AXValueCGPoint
- Subject: Re: AXTextArea AXValueCGSize AXValueCGPoint
- From: John Joyce <email@hidden>
- Date: Sun, 09 Feb 2014 02:12:09 +0900
Hi Boris
Thank you very much!
That clarifies it completely.
It is sometimes confusing that the AX view of the world is not quite the same as the actual view objects :)
But it generally makes sense, because they (AX) should be lean objects.
What you explain really makes sense.
When I get time again, I will check this out closer.
This will help me identify correctly the insertion point location.
Thanks!
JJ
On Feb 6, 2014, at 6:29 AM, Boris Dušek <email@hidden> wrote:
> Hello John,
>
> looking at TextEdit and having implemented it in TextMate, it seems that it is simply AXTextArea’s responsibility to specify its whole dimensions and the AXScrollArea’s responsibility to clip those dimensions. I think you can best understand what is happening when launching Accessibility Inspector, locking (Fn-Cmd-F7) its focus on the text area of TextEdit while pointing mouse pointer at it, and then (only in case the text area is not yet highlighted) click the rectangle in the bottom-right corner of the accessibility inspector (this should enable highlighting of the bounds on screen using translucent blue color). Then you can also double-click the containing AXScrollArea in the accessibility inspector to see (and read) its bounds.
>
> If you want to get the bounds of the clip view, simply get the bounds of the containing AXScrollArea :-) I hope that’s what you meant and that it answers your question.
>
> Best regards,
> Boris Dušek
> R&D, tech support
> A11Y LTD.
> a11y.ltd.uk
>
> On Jan 17, 2014, at 4:28 PM, John Joyce <email@hidden> wrote:
>
>> Hello
>>
>> Can anyone help me understand why NSTextViews (as AXTextArea) seem to give size values that are the unclipped document view of the containing scrollview?
>> Also the upper left origin point varies based on the scrolled position of that document view relative to the screen (ignoring visible bounds of the clip view…) ?
>>
>> I would like to get the visible bounds of the view as what the clip view shows, but in my efforts I am getting something else.
>>
>> Is there a way to get the visible bounds of a scroll view’s content, rather than the bounds of the document view inside?
>>
>> Thanks
>> JJ
>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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