Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AX[Visible]Columns and a custom control



Seems like it might be better (and more simply) represented as an AXList.

-ME

On Aug 26, 2006, at 12:58 PM, Ricky Sharp wrote:

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 (Accessibility- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/accessibility-dev/engber% 40apple.com


This email sent to 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: http://lists.apple.com/mailman/options/accessibility-dev/email@hidden

This email sent to email@hidden
References: 
 >AX[Visible]Columns and a custom control (From: Ricky Sharp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.