Instance Method

standardWindowButton(_:)

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

Declaration

func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?

Parameters

b

The type of standard window button to return.

Return Value

Window button in the window’s view hierarchy of the type identified by b; nil when such button is not in the window’s view hierarchy.

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.

var showsToolbarButton: Bool

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

var titlebarAppearsTransparent: Bool

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