List widgets (CwList) present a list of items and allow the user to select one or more items from the list. List widgets are created using thecreateList:argBlock:and createScrolledList:argBlock: convenience methods. The latter method makes the list scrollable, but otherwise provides basically the same functionality. Scrolled lists are discussed on Scrolled lists.The items in the list and the selected items are specified by the items and selectedItems resources, respectively. The selectionPolicy resource specifies the policy for selecting items. It has four possible settings:The selectionPolicy resource determines which callback is used to notify the application of changes in the selection. List widgets support the following callbacks:
|