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.