setSelectedObjects(_:)
Sets the specified objects as the receiver’s current selection.
Declaration
func setSelectedObjects(_ objects: [Any]) -> 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.