NSButton in Catalina has no selected state
问题 I have an NSButton set as a checkbox with the following code on Catalina (Mojave is fine): let checkbox = NSButton(frame: NSRect(x: 0, y: 0, width: 200, height: 32)) checkbox.setButtonType(.switch) checkbox.title = "Sustain" checkbox.state = .off self.view.addSubview(checkbox) It looks fine when I load the app But as soon as I check it, the tick mark that I expect to be there isn't there If I load up the visual hierarchy debugger I can see it fine, I've tried putting this code straight onto a