gpt4 book ai didi

cappuccino - Cappuccino [警告] : Could not connect the action

转载 作者:行者123 更新时间:2023-12-03 13:38:02 25 4
gpt4 key购买 nike

这一定是愚蠢的,因为它是如此基础,甚至无法正常工作。

无论如何,

➜  ~  capp --version
cappuccino 0.9.6 (2012-11-17 788ee6)

我使用以下命令从模板构建了一个基本的NibApplication。
capp gen -t NibApplication ButtonTest

我没有链接框架。

我在AppController.j中添加了以下方法
- (IBAction)hello:(id)sender {
alert("hello");
}

我运行XcodeCapp,在Xcode 4.5.2中打开了项目,并在窗口中添加了一个NSButton并将其链接到AppController中的 Action “hello:”

当我在Safari中运行index-debug.html时,这就是我在控制台中看到的内容。
2012-11-18 22:58:01.566 Cappuccino [warn]: Could not connect the action hello: to target of class AppController

我不明白我在做什么错。

最佳答案

因此,我忘了通过简单的Web服务器运行它。我通过在Apache上运行它进行了测试,并且可以正常工作。奇怪的是Safari控制台没有给我有关此的任何错误。

关于cappuccino - Cappuccino [警告] : Could not connect the action,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13442667/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com