Re: How to Group UI Elements in Swift for VoiceOver on MacOS?
Re: How to Group UI Elements in Swift for VoiceOver on MacOS?
- Subject: Re: How to Group UI Elements in Swift for VoiceOver on MacOS?
- From: Chi Kim <email@hidden>
- Date: Sun, 15 Apr 2018 19:06:25 +0000
- Thread-topic: How to Group UI Elements in Swift for VoiceOver on MacOS?
I was able to get NSStackView to work as a group.
class GroupView:NSStackView, NSAccessibilityGroup {
override func accessibilityLabel() -> String? {
return "Test"
}
}
Then select the stack view from the storyboard, open identity inspector, and
assign GroupView as the custom class.
Chi
On 4/15/2018 10:20 AM, Jonathan Cohn wrote:
Probably the best thing to do is use AppleScript UI / Accessibility tools on a
View/Region you want to mimic.
Use:
/Library/Scripts/UI Element Scripts/Probe Window.applescript
As a starting place.
as a starting point.
Best wishes,
Jonathan Cohn
On Apr 15, 2018, at 10:04 AM, Chi Kim
<email@hidden<mailto:email@hidden>> wrote:
Thanks again Oriol.
Aren't tabs used to select and show one tab at a time?
For my case, everything needs to be visible at all time.
I'm just looking for a generic container that I could use to organize UI
elements specifically for VoiceOver users only, not necessary for
sighted users.
For example, in xCode, if you go to the tool bar with VoiceOver,
VoiceOver can see activity view group, editor radio group, view group.
In order to look at the controls inside each group, you need to interact
with each group.
Sorry for not being clearer about my question.
Chi
On 4/15/2018 9:04 AM, Oriol Gómez wrote:
ok then, make a bunch of tabs at the top and ahve these checkboxes
grouped in tabs.
hth.
On 4/15/18, Chi Kim <email@hidden<mailto:email@hidden>>
wrote:
Thanks Oriol for the suggestion.
Unfortunately the UI elements I'm trying to group don't fall into any
particular UI category like toolbar, table, and so on.
They're part of main GUI, and there are bunch of check boxes, sliders,
buttons, and labels for different function of the app. I would like to
group them into different section by their function.
It would be easier for VoiceOver users to be able to quickly narrow down
particular controls by interacting/stop interacting with particular
section (or function) and locate a control for that function instead of
having to go through every check boxes and sliders until they get to one
they need.
Thanks,
Chi
On 4/15/2018 7:12 AM, Oriol Gómez wrote:
Hi.
OK, I'm speaking out of logic and I don't have experience with mac UI,
but here is something that might help.
You can probably use a table or a toolbar? idk
If you see it, some things use scroll areas, etc but always, when
something has to be interacted with, it's a recognizable element.
So , if you wanted stuff in a toolbar, you'd have to make that toolbar
etc.
a stack view is not something invisible that you can interact with.
Hth.
On 4/15/18, Chi Kim <email@hidden<mailto:email@hidden>>
wrote:
Hi All,
I used NSStackView to easily organized UI elements and place them on
different areas of main view.
Now, VoiceOVer sees all UI elements in one layer, and I'm wondering How
I can make stack views so that VoiceOver users have to interact and stop
interact with each stack view.
Even better, is there any view that automatically appears to VoiceOver
as a group, and I can just use it as a container?
I'd really appreciate if someone could provide any snippet in Swift.
Here's the post I created on Stack Overflow.
https://stackoverflow.com/questions/49841207
Thanks!
Chi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list
(email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto: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