Contents

outlineView(_:isItemExpandable:)

Returns a Boolean value that indicates whether the a given item is expandable.

Declaration

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

Parameters

  • outlineView:

    The outline view that sent the message.

  • item:

    An item in the data source.

Return Value

true if item can be expanded to display its children, otherwise false.

Discussion

This method may be called quite often, so it must be efficient.

See Also

Instance Methods