#AM TCL Lists
I am slowly getting things working here, but keep running into questions of how
to properly proceed. It doesn't seem to me that the AM manual helps much in
explaining what the classes are that AM generates and how to use them (that
info it fine for C though).
At any rate, I have a dialog with 2 lists — a log list and an error list. The
data to be inserted in them will be generated at run time by the program as it
performs tests on NuBus cards. The basic code was generated by AM 1.5.4X.
I don't see how I should add new rows to each of the lists given the code basis
that was generated.
It looks as though the generated code expects me to maintain a ghost data
structure with all the info rather than rely on the Mac List Manager to hold
the data. Is that true? If so, is there a reason for this doubling of data
requirements?
I also don't see any method for adding to the list after it is created. I see
where it can be built if the contents are known at creation time, but I
expected to find a "AddListRow()" method. Is there something here I am
misunderstanding?
Given the AM structure, how should a method under another class (I created a
"CCard" class) access the list? I tried to create a
"CLogListRinger::Report (char *str)"
function, but then couldn't figure out where to get my handle to the list
element. ie, what is "x" in "x->Report("This is the next line")"?
– Burt