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

2019-07-18 22:18发布

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条回答
萌系小妹纸
2楼-- · 2019-07-18 23:06

NSApplication does not respond to the buttonClicked: method and, therefore, there is no way for the target/action connection to be successfully made.

查看更多
登录 后发表回答