Re: Accessibility for a custom text editor
Re: Accessibility for a custom text editor
- Subject: Re: Accessibility for a custom text editor
- From: Chris Fleizach <email@hidden>
- Date: Fri, 6 Jan 2012 10:59:58 -0800
You need to send NSAccessibilitySelectedTextChangedNotification and NSAccessibilityValueChangedNotification when needed.
A good place to start on how to do this is by looking at what WebKit does for it's Textfields.
http://trac.webkit.org/browser/trunk/Source/WebCore/accessibility/mac/AXObjectCacheMac.mm?rev=104301
and
http://trac.webkit.org/browser/trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapper.mm?rev=104301
On Jan 6, 2012, at 10:54 AM, Felipe Monteiro de Carvalho wrote:
> Hello,
>
> I have an application which has a custom control (A HIView in the
> Carbon version and a NSControl in the Cocoa version) which is a text
> editor which I need to make accessible. I checked how Voice Over works
> and to me it seams that immediately I would need an way to send text
> for Voice Over to say, to make it read my lines when the user uses
> arrow up/down or to read a letter when using arrow left/right.
>
> Is this possible? How? I need to implement this both in Carbon and
> also in Cocoa (I am actually implementing in a cross-platform
> framework).
>
> I searched a bit but I haven't found any information on this
> specifically for textt editor.
>
> thanks,
> --
> Felipe Monteiro de Carvalho
> _______________________________________________
> 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