PATH |
A WODisplayGroup keeps a selection in terms of indexes into the array of displayed objects. Components that display values for multiple objects are responsible for updating the selection in their WODisplayGroups according to user actions on their dynamic elements. This is typically done with the setSelectionIndexes method. Other methods available for indirect manipulation of the selection are the action methods selectNext and selectPrevious .
To get the selection, you can use the selectionIndexes method, which returns an array of indexes as Number objects (NSNumber in Objective-C), or selectedObjects , which returns an array containing the selected objects themselves. Another method, selectedObject , returns the first selected object if there is one.