Contents

addSplitViewItem(_:)

Adds a split view item to the end of the array of split view items.

Declaration

func addSplitViewItem(_ splitViewItem: NSSplitViewItem)

Parameters

  • splitViewItem:

    The split view item to add.

Discussion

This is a convenience method you can use in place of the insertSplitViewItem(_:at:) method when you want to add a split view item to the end of the splitViewItems array. Calling this method implicitly calls the insertSplitViewItem(_:at:) method.

If you subclass the NSSplitViewController class, don’t call this method in your custom object to add a split view item. Instead, call the insertSplitViewItem(_:at:) method directly.

See Also

Modifying a Split View Controller