outlineView(_:shouldSelectItem:)
Returns a Boolean value that indicates whether the outline view should select a given item.
Declaration
@MainActor optional func outlineView(_ outlineView: NSOutlineView, shouldSelectItem item: Any) -> BoolParameters
- outlineView:
The outline view that sent the message.
- item:
The item.
Return Value
true to permit outlineView to select item, false to deny permission.
Discussion
You implement this method to disallow selection of particular items.
For better performance and finer grain control over the selection, use outlineView(_:selectionIndexesForProposedSelection:).