问题
I've changed my app class type from NSObject
to NSApplication
and now I get the following message when testing my app:
Could not connect the action buttonClicked: to target of class NSApplication
What does this mean and how can I fix it?
回答1:
NSApplication
does not respond to the buttonClicked:
method and, therefore, there is no way for the target/action connection to be successfully made.
来源:https://stackoverflow.com/questions/3886029/why-would-my-app-not-be-able-to-attach-an-action