Instance Property


The image the button displays in its alternate state.


var alternateImage: NSImage? { get set }


The value of this property is the image displayed by the button when it's in its alternate state, or nil if there is no alternate image. Note that some button types don’t display an alternate image. Buttons don’t display images by default. Setting this property may redraw the contents of the button.

See Also

Managing Images

var imagePosition: NSControl.ImagePosition

The position of the button’s image relative to its title.

var imageScaling: NSImageScaling

The scale factor for the button’s image.