Returns a new instance of a given standard window button, sized appropriately for a given window style.
- macOS 10.2+
The type of standard window button to return.
The window style for which
bis to be sized. See
NSWindowfor the list of allowable values.
The new window button of the type identified by
nil when no such button type exists.
The caller is responsible for adding the button to the view hierarchy and for setting the target to be the window.