In an OSX App, I have create ButtonSubClassan NSButton subclass to add some behaviors to the buttons.
Could I use this for the buttons of an NSAlert ?
I tried
alert.addButton(withTitle: "modified") as! ButtonSubClass
But compiler warns me "expression of type "ButtonSubClass" is unused
And effectively, this has no effect