Sets the button’s type, which affects its user interface and behavior when clicked.
- macOS 10.0+
This method causes the button to update to reflect the new type before the method finishes executing.
The types available are for the most common button types, which are also accessible in Interface Builder. You can configure different behavior with the
Note that there is no
-button method. The set method sets various button properties that together establish the behavior of the type.