Contents

insertSplitViewItem(_:at:)

Adds a split view item to the array of split view items at the specified index position.

Declaration

func insertSplitViewItem(_ splitViewItem: NSSplitViewItem, at index: Int)

Parameters

  • splitViewItem:

    The split view item to add.

  • index:

    The index position for adding the split view item in the Splitviewitems array.

Discussion

If the split view controller’s view finishes loading, and the split view item that you add is visible, the system loads the split view item’s view controller’s view and adds it to the split view.

See Also

Modifying a Split View Controller