I am having a little trouble with NSButton's action. I programmatically create a button ...
let continueButton = NSButton(title: "Continue", target: self, action: #selector(self.continueButtonClicked))
... to call this function:
@objc func continueButtonClicked() {
print("continueButtonClicked")
}
However, continueButtonClicked
is never called and the button appears to be disabled. I've tried enabling it, but that didn't do the trick.
Am I missing something?