Instance Method

insertSplitViewItem(_:at:)

Adds a split view item to the splitViewItems array of the split view controller, at a specified index position.

Declaration

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

Parameters

splitViewItem

The split view item to add.

index

The index position in the splitViewItems array at which to add the split view item.

Discussion

If the split view controller’s view is loaded, and the split view item being added is visible, the split view item’s view controller’s view gets loaded and added to the split view.

See Also

Modifying a Split View Controller

func addSplitViewItem(NSSplitViewItem)

Adds a split view item to the end of the splitViewItems array of the split view controller.

func removeSplitViewItem(NSSplitViewItem)

Removes a specified split view item from the split view controller.