Instance Method

insertTabViewItem(_:at:)

Inserts the specified item into the tab view’s array of tab view items at the specified index.

Declaration

func insertTabViewItem(_ tabViewItem: NSTabViewItem, at index: Int)

Parameters

tabViewItem

The tab view item to be added.

index

The index at which to insert the tab view item. The index parameter is zero-based.

Discussion

If there is a delegate and the delegate supports it, sends the delegate the tabViewDidChangeNumberOfTabViewItems(_:) message.

See Also

Adding and Removing Tabs

func addTabViewItem(NSTabViewItem)

Adds the specified tab item.

func removeTabViewItem(NSTabViewItem)

Removes the specified item from the tab view’s array of tab view items.