Re: Accessibility for non-windowed controls in Cocoa
Re: Accessibility for non-windowed controls in Cocoa
- Subject: Re: Accessibility for non-windowed controls in Cocoa
- From: Patti Hoa <email@hidden>
- Date: Fri, 13 Jan 2012 10:22:32 -0800
Hi Felipe,
When you say "Inside this", I assume you mean inside the NSWindow, not inside the NSControl, right?
Anytime you want to expose a non-Cocoa view/control/object through accessibility, you need to create a fauxUIElement for it. There are many accessibility code samples on the developer.apple.com that demonstrate how to create a fauxUIElement, such as Sketch, Dicey, and ImageMap projects. Make sure you read the documentations to match your widgets as closely to Cocoa controls accessibility as possible, in terms of the various ax attributes to support. And don't forget notifications and actions too.
Patti
On Jan 13, 2012, at 1:58 AM, Felipe Monteiro de Carvalho wrote:
> Hello,
>
> Starting another thread for a similar topic, but now in Cocoa.
>
> I have a custom drawn framework which uses only a single NSWindow and
> a NSControl inside it. Inside this, I create all of my controls
> completely non-natively. I have buttons, checkboxes, text editors,
> etc.
>
> Is it possible to make those non-windowed controls, which essentially
> do not exist at all as far as Cocoa is concerned, accessible? How?
>
> 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