Instance Method


Returns the corresponding split view item for a given child view controller of the split view controller.


func splitViewItem(for viewController: NSViewController) -> NSSplitViewItem?



The child view controller whose corresponding split view item you want.

Return Value

The corresponding split view item. Returns nil if viewController is not a child of the split view controller.

See Also

Configuring and Managing a Split View Controller

var splitView: NSSplitView

The split view managed by the split view controller.

var splitViewItems: [NSSplitViewItem]

The array of split view items that correspond to the split view controller’s child view controllers.