Contents

setSelectedObjects(_:)

Sets the specified objects as the receiver’s current selection.

Declaration

func setSelectedObjects(_ objects: [Any]) -> Bool

Return 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.

See Also

Managing selections