Re: Stopping a scrolling text view from stealing focus from static text fields
Re: Stopping a scrolling text view from stealing focus from static text fields
- Subject: Re: Stopping a scrolling text view from stealing focus from static text fields
- From: Citizen <email@hidden>
- Date: Wed, 25 Jun 2008 16:46:32 +0100
I'm responding to my own message with additional things I've tried. On 16 Jun 2008, at 14:28, Citizen wrote: I'm just beginning with the accessibility API. I'm trying to get a custom Cocoa About panel to work in the same accessible way as the standard About panel.
When using VoiceOver: on a standard About panel the accessibility focus starts with the first static text field (the name of the application), but in my custom About panel the Credits in the scrolling text view are always selected first.
This is what I have tried: * Each text field is selectable. * The static text field representing the application name is connected to the panel's initialFirstResponder. * Each text field and the Credits Text View are connected together in an appropriate loop to each other's nextKeyView * The NSAccessibilityFocusedAttribute for the panel is set to YES * The NSAccessibilityFocusedAttribute for the Credits Text View is set to NO
I thought maybe posting an accessibility value change notification for the first static text field may give it accessibility focus: NSAccessibilityPostNotification(appNameTextField, NSAccessibilityValueChangedNotification); but this did not work.
I then thought of setting the application name element as the title UI Element of the credits Text View: [creditsTextView accessibilitySetOverrideValue:appNameTextField forAttribute:NSAccessibilityTitleUIElementAttribute]; [appNameTextField accessibilitySetOverrideValue:creditsTextView forAttribute:NSAccessibilityServesAsTitleForUIElementsAttribute]; but this did not work either.
What am I missing? Can anyone point me in the right direction?
Thanks, Dave
------ |
_______________________________________________
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