Re: AXTextArea AXValueCGSize AXValueCGPoint
Re: AXTextArea AXValueCGSize AXValueCGPoint
- Subject: Re: AXTextArea AXValueCGSize AXValueCGPoint
- From: Boris Dušek <email@hidden>
- Date: Wed, 05 Feb 2014 22:29:07 +0100
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