Instance Property

showsToolbarButton

A Boolean value that indicates whether the toolbar control button is currently displayed.

Declaration

var showsToolbarButton: Bool { get set }

Discussion

The value of this property is true if the standard toolbar button is currently displayed; otherwise, false. When clicked, the toolbar control button shows or hides a window’s toolbar. The toolbar control button appears in a window’s title bar. If the window does not have a toolbar, this property has no effect.

See Also

Managing Title Bars

class func standardWindowButton(NSWindow.ButtonType, for: NSWindow.StyleMask) -> NSButton?

Returns a new instance of a given standard window button, sized appropriately for a given window style.

func standardWindowButton(NSWindow.ButtonType) -> NSButton?

Returns the window button of a given window button kind in the window’s view hierarchy.

var titlebarAppearsTransparent: Bool

A Boolean value that indicates whether the title bar draws its background.