Contents

outlineView(_:shouldExpandItem:)

Returns a Boolean value that indicates whether the outline view should expand a given item.

Declaration

@MainActor optional func outlineView(_ outlineView: NSOutlineView, shouldExpandItem item: Any) -> Bool

Parameters

  • outlineView:

    The outline view that sent the message.

  • item:

    The item that should expand.

Return Value

true to permit outlineView to expand item, false to deny permission.

Discussion

The delegate can implement this method to disallow expanding of specific items.

See Also

Related Documentation

Expanding and Collapsing the Outline