为什么我的应用程序无法“附加"到应用程序中?一种行为? [英] Why would my app not be able to "attach" an action?
本文介绍了为什么我的应用程序无法“附加"到应用程序中?一种行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将我的应用程序类类型从NSObject
更改为NSApplication
,现在在测试我的应用程序时收到以下消息:
无法将操作buttonClicked:连接到类NSApplication的目标
这是什么意思,我该如何解决?
解决方案
NSApplication
不响应buttonClicked:
方法,因此无法成功建立目标/操作连接.>
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?
解决方案
NSApplication
does not respond to the buttonClicked:
method and, therefore, there is no way for the target/action connection to be successfully made.
这篇关于为什么我的应用程序无法“附加"到应用程序中?一种行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文