XCode/可可 +石英作曲家 +界面生成器的困境

发布于 2024-09-15 12:24:31 字数 784 浏览 0 评论 0原文

所以,我似乎无法让这个(我认为相当简单)Cocoa 应用程序正常工作。我有一个 Quartz Composer 补丁,它根据 GUI 输入写入文本文件,然后调用文本文件并将它们显示在第二个显示器(即投影仪)上。QC 内部的一切都按预期工作。 (据我所知)这不是问题。

我设法在 Interface Builder 中构建 UI,并设置文本框和提交按钮的绑定。有两个窗口,一个 GUI 和一个 QCView 窗口。当我在 Cocoa Simulator 中模拟它时,两个窗口都会显示,QC 视图播放合成,并且文本框/按钮确实与 QC 补丁对话(测试过)。但是,无论出于何种原因,该补丁都不会产生新的内容按下提交按钮时的文本文件。 (我希望这只是模拟器的怪异,并且当我可以让 .app 工作时它就会工作。)

在 XCode 项目中,我添加了 IB UI 和 Quartz 框架(是的,我确定 - 我是按照这个教程)它编译并成功运行,控制台中没有错误,但(莫名其妙地)找不到 QCView 窗口。另外,GUI 窗口显示得很好,但就像模拟器一样,如果我填写文本框并按提交,则不会写入任何文本文件。看起来 Cocoa 应用程序甚至没有加载 QC 补丁(甚至在后台)。

呃。哈尔普?我不知道从哪里开始。我不是一个懂代码的人,只是打补丁之类的,所以如果解决方案需要任何硬代码,请温柔一点,哈哈哈。

So, I can't seem to get this (I thought rather simple) Cocoa app working properly. I have a Quartz Composer patch which writes text files based on GUI input, then recalls the text files and displays them on a second display (ie projector.) Everything works as expected from inside QC. That's not (as far as I can tell) the problem.

I managed to build the UI in Interface Builder, and set up the bindings for text boxes and a submit button. There are two windows, a GUI and a QCView window. When I simulate it in Cocoa Simulator, both windows show up, the QC view plays the composition, and the text boxes/buttons DO talk to the QC patch (tested it.) However, for whatever reason, the patch doesn't make new text files when pressing the submit button. (I am hoping this is just weirdness with the simulator, and that it will work when I can get the .app working.)

In the XCode project, I added the IB UI and the Quartz framework (yes, I made sure - I was following this tutorial) It compiles and runs successfully, with no errors in the console, but there is (inexplicably) no QCView window to be found. Also, the GUI window shows up fine, but just like the simulator, if I fill in the text boxes and press submit, no text files are written. It seems like the Cocoa app isn't even loading the QC patch (even in the background.)

Erm. Halp? I have no idea where to even start. I'm not a big code person, just patching and such, so if the solution requires any hard code please be gentle, hahaha.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦亿 2024-09-22 12:24:31

您是否明确显示 QCView 窗口?

如果没有,您是否选中了“启动时可见”复选框?

Are you showing the QCView window explicitly?

If not, do you have its “visible on launch” checkbox checked?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文