ListModel
ListModel inherits from Model and defines instance variables list, selectionIndex. It has no subclasses.
ListModels trigger these dependency events:
#list - when the entire list is replaced
#element: - when a single element is changed (the index is passed as an argument)
Note that ListModels do not support the full Collection protocol - to do more than #at:, #at:put: and #size, you must access the list directly (by sending #list) then replace it when finished.
Methods defined in ListModel:
Methods for accessing:
- list
- list: newList
- selection
- selection: object
- selectionIndex
- selectionIndex: newIndex
- setList: newList
- setSelectionIndex: newIndex
Methods for collection accessing:
- at: index
- at: index put: value
- size
Pocket Smalltalk Documentation