Setting AXDescription from a nib
Setting AXDescription from a nib
- Subject: Setting AXDescription from a nib
- From: Avi Drissman <email@hidden>
- Date: Tue, 22 Dec 2009 16:44:32 -0500
In the app I'm working on, I need to set the AX description of a button in a nib and then change it from code (more specifically, we need to do localization). So I went into the nib, and set the description field, and using Accessibility Inspector, I can see that the AXDescription field is set.
In gdb, I po the cell:
<ClickHoldButtonCell: 0x1797d0>
(ClickHoldButtonCell is a subclass of NSButtonCell.)
And get details:
(gdb) p (BOOL)[0x1797d0 accessibilityIsIgnored]
$1 = 0 '\0'
(gdb) po (id)[0x1797d0 accessibilityAttributeNames]
<NSCFArray 0x1837b0>(
AXRole,
AXRoleDescription,
AXHelp,
AXEnabled,
AXFocused,
AXParent,
AXWindow,
AXTopLevelUIElement,
AXPosition,
AXSize,
AXTitle
)
Eh? Where's the AXDescription?
(gdb) po (id)[0x1797d0 accessibilityAttributeValue:@"AXDescription"]
2009-12-22 16:19:12.294 Chromium[17058:813] "AXDescription" attribute unsupported by: <ClickHoldButtonCell: 0x1797d0>
Ugh. But if I mouse over it, Accessibility Inspector shows me the value I set from the nib and can't access from the code.
Where does that value live? How can I get at it from the code? I feel like I'm missing something fundamental here.
Thanks,
Avi
_______________________________________________
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