Type Method

standardWindowButton:forStyleMask:

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

Declaration

+ (NSButton *)standardWindowButton:(NSWindowButton)b forStyleMask:(NSWindowStyleMask)styleMask;

Parameters

b

The type of standard window button to return.

styleMask

The window style for which b is to be sized. See NSWindowStyleMask for the list of allowable values.

Return Value

The new window button of the type identified by b; nil when no such button type exists.

Discussion

The caller is responsible for adding the button to the view hierarchy and for setting the target to be the window.

See Also

Managing Title Bars

- standardWindowButton:

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

showsToolbarButton

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

titlebarAppearsTransparent

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