addSelectionIndexes(_:)
Adds the objects at the specified indexes in the receiver’s content array to the current selection.
Declaration
func addSelectionIndexes(_ indexes: IndexSet) -> BoolReturn Value
true if the selection was changed.
Discussion
Attempting to change the selection may cause a commitEditing() message which fails, thus denying the selection change.