Contents

newWindowForTab(_:)

Creates a new window to show as a tab in a tabbed window.

Declaration

@IBAction func newWindowForTab(_ sender: Any?)

Parameters

  • sender:

    The sender of the action.

Discussion

The system automatically calls this method to create a window for a new tab when the user clicks the plus button in a tabbed window. The system shows a plus button on a tabbed window only if this method exists on one of the following objects: