Instance Method

addTitlebarAccessoryViewController(_:)

Adds the specified title bar accessory view controller to the window.

Declaration

func addTitlebarAccessoryViewController(_ childViewController: NSTitlebarAccessoryViewController)

Parameters

childViewController

An instance of NSTitlebarAccessoryViewController containing the view to add, along with where to place it and how it should behave in full screen mode.

See Also

Managing the Toolbar-Title Bar Area

func insertTitlebarAccessoryViewController(NSTitlebarAccessoryViewController, at: Int)

Inserts the view controller into the window’s array of title bar accessory view controllers at the specified index.

func performDrag(with: NSEvent)

Starts a drag based on the specified mouse-down event.

func removeTitlebarAccessoryViewController(at: Int)

Removes the view controller at the specified index from the window’s array of title bar accessory view controllers.

var titlebarAccessoryViewControllers: [NSTitlebarAccessoryViewController]

An array of title bar accessory view controllers that are currently added to the window.