init(image:target:action:)
Creates a standard push button with the image you specify.
Declaration
convenience init(image: NSImage, target: Any?, action: Selector?)Parameters
- image:
The image to display in the body of the button.
- target:
The target object that receives action messages from the button.
- action:
The action message the button sends to the target.
Discussion
Set the image’s accessibilityDescription property to ensure accessibility for this control.