A Boolean value that indicates whether the user may select items in the collection view.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
var isSelectable: Bool { get set }
Discussion
The value of this property is true
when the collection view allows the user to select items, or false
when it does not. You can set selections programmatically regardless of this setting.
The default value of this property is false
. Changing the value from true
to false
removes the current selection if there is one.