为什么我的应用程序不能& quot;附加& quot;"一种行为? [英] Why would my app not be able to "attach" an action?

查看:63
本文介绍了为什么我的应用程序不能& quot;附加& quot;"一种行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的应用程序类类型从 NSObject 更改为 NSApplication ,现在在测试我的应用程序时收到以下消息:

I've changed my app class type from NSObject to NSApplication and now I get the following message when testing my app:

无法将操作buttonClicked:连接到类NSApplication的目标

Could not connect the action buttonClicked: to target of class NSApplication

这是什么意思,我该如何解决?

What does this mean and how can I fix it?

推荐答案

NSApplication 不响应 buttonClicked:方法,因此,无法使用成功建立目标/动作连接.

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

这篇关于为什么我的应用程序不能& quot;附加& quot;"一种行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆