Modifying selected children attribute
Modifying selected children attribute
- Subject: Modifying selected children attribute
- From: Ricky Sharp <email@hidden>
- Date: Sun, 25 Feb 2007 15:44:12 -0600
I have an NSMatrix subclass (IISwitchGroup; AXGroup) that serves as a
collection of custom checkboxes (IIButtonCell; AXCheckbox).
Currently, IISwitchGroup contains among others, the
NSAccessibilitySelectedChildrenAttribute and it's writable. As I
interact with its cells via mouse, keyboard, or speech (they toggle
on/off), the selected children attribute changes as expected. Any
bindings to the cells also work as expected.
However, when I modify the attribute (e.g. using Prefab UI browser),
I do see state changes reflected visually in the cells, but bindings
to them are not updated.
I overrode the following NSMatrix methods, but none of them were
being called:
- selectCell
- selectCellAtRow:column:
- selectCellWithTag:
- setValue:forKey:
I also placed breakpoints in the following of the cell class, but
none were called:
- setState:
- setValue:forKey:
How can I find out the method that is being called to change the
state of the cells?
Note that I don't need my switch group to have the selected children
attribute (or I could leave it and make it read-only). But, I
thought it would be nice as it would allow users to perform a
multiple-selection. The only other alternative for interaction is to
use a 'press' action on individual checkboxes.
Finally, in cases where other attributes are writable, everything
works a-ok. For example, my 'value field' objects (numerical range)
contain a writable 'value' attribute. I'm able to set the value with
UI Browser; it even honors the current min and max value attributes
as well. Bindings are updated as expected when the value is directly
set.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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