Why would my app not be able to “attach” an action?

社会主义新天地 提交于 2019-12-13 17:06:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!