AX[Visible]Columns and a custom control
AX[Visible]Columns and a custom control
- Subject: AX[Visible]Columns and a custom control
- From: Ricky Sharp <email@hidden>
- Date: Sat, 26 Aug 2006 14:58:53 -0500
I have the following subclasses that make up a custom "table" that
will have a role of AXTable:
IITable (NSControl subclass)
IITableCell (NSActionCell subclass; role of AXRow)
IITableScrollerCell (NSActionCell subclass)
The table is a multi-cell control (contains cells; 1 for each row)
and the scroller cell.
When adding accessibility support, I got everything in place except
for the following:
AXColumns
AXVisibleColumns
Now then, my table/list doesn't have any header cells (it's basically
like the list of screen savers as seen in the screen saver prefs
panel; just a list of cells with a scroller)
This particular screen saver list shows this in Acc Inspector:
AXColumns: <array of size 1>
AXVisibleColumns: <array of size 1>
Since my custom control doesn't use NSTableColumn objects, I'm
wondering what to return in those arrays. I suppose I could have my
table class actually maintain an instance of NSTableColumn and return
that. My table is fixed in size and will only ever have 1 column;
thus I could easily set attributes on the NSTableColumn to match my
setup (width, identifier, etc.).
Or I suppose I could create a simple object (IITableColumn) that
would have a role of AXColumn and be able to respond to various
attributes (AXRows, AXSelected, etc.). I suppose this would be the
better approach.
Thoughts?
Thanks,
___________________________________________________________
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