Re: Persistency of accessibilityActionNames
Re: Persistency of accessibilityActionNames
- Subject: Re: Persistency of accessibilityActionNames
- From: Josh Scotland <email@hidden>
- Date: Mon, 28 Oct 2013 22:07:34 -0700
Hey Ilya,
> Can UI element return different actions for accessibilityActionNames the same element?
Yes, depending on the state of the element, it can have different actions and associated action names.
This is exactly how the new ‘alternate UI’ actions work. When the element is in the default (shown) state, it’ll have the ‘hide’ action. When the element is in the alternate (hidden) state, it’ll have the ‘show’ action. Check out this year’s WWDC for sample code.
Having different actions depending on state should work for 10.8 and 10.7. 10.9 just adds the NSAccessibilityShowAlternateUIAction and NSAccessibilityShowDefaultUIAction constants.
Aside: If you’re testing with VO, on 10.9 you can pull up the custom actions menu by doing VO+command+space on the element. This will have a list of all your actions. On 10.8 and 10.7, I think you pull it up with VO+command+enter.
On Oct 25, 2013, at 12:01 PM, Ilya Kulakov <email@hidden> wrote:
> Can UI element return different actions for accessibilityActionNames the same element?
>
> E.g. element may have multiple states. In one state it can only be pressed (show alternate UI action on 10.9) in another state it can receive cancel and delete actions. Should accessibilityActionNames return different actions depending on state or it should return list of all supported actions?
>
> I’m primarily interested in behaviour under 10.9, but will very appreciate if you add note regarding 10.8 and 10.7
>
>
> Best regards,
> Ilya Kulakov
>
> _______________________________________________
> 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