This class is used widely by MacApp and can be a valuable tool in your application as well. The TAssociation class manages a sorted list of entries, in which each entry associates a CString key with a CString value. TAssociation is useful for storing a list of strings that can be accessed by their associated keys. The THandleList class stores references to handles. It can be useful for dealing with a variety of developer-defined data types.
Iteration is a general-purpose mechanism for traversing the items in a list.
MacApp provides the CIterator class and a large number of specialized subclasses that operate on lists containing items of various types. Iteration classes can traverse the items in a list without knowing the exact details of the data structures involved. The use of iteration classes with MacApp's failure-handling mechanism can require extra caution. Inc. All rights reserved.