Contents

tabView(_:shouldSelect:)

Invoked just before tabViewItem in tabView is selected.

Declaration

@MainActor optional func tabView(_ tabView: NSTabView, shouldSelect tabViewItem: NSTabViewItem?) -> Bool

Parameters

  • tabView:

    The tab view that sent the request.

  • tabViewItem:

    The tab view item to select.

Return Value

true if the tab view item should be selected, otherwise false.

See Also

Selecting a Tab