#AM TCL Lists
Burt,
The TCL does not use the Mac List Manager. That's why it doesn't suffer from
the many limitations of the List Manager. In the TCL, you'll usually use an
ArrayPane which is a Table set up to use an Array. The Table provides all the
user interface for a list; the Array provides the data.
ArrayPane and Table are two classes that are always subclassed. AppMaker
generates a subclass for you that has a GetCellText method. That method
accesses the associated Array (or other data structure) for cell (x,y) and
returns a string. You don't have two copies of the data; you just have whatever
data structure is convenient for you and GetCellText accesses that data
structure.
There is an initialization method for the list subclass which is where you
would normally put the code to set the number of rows of the list. AppMaker
generates a call to AddRow to add four rows for testing purposes.
Look at our AMReminder example and you'll see a list that is built dynamically
at runtime.
Spec