Setting the background color of NSButton is not directly supported. A robust way to create a customized button is to subclass NSButton and override drawRect:. Another way is to customize the button using CALayers.
layer = CALayer.layer
layer.backgroundColor = NSColor.orangeColor.CGColor
button.setLayer layer
button.setWantsLayer true