How to scale image in NSButton in AppKit
From https://developer.apple.com/documentation/appkit/nsbutton/2202284-imagescaling
The scaling mode applied to make the cell’s image fit the frame of the image view.
let button = NSButton()
button.imageScaling = .scaleProportionallyUpOrDown
button.image = NSImage(named: NSImage.Name("image"))