如何将值从 obj-C 传递到 Quartz Composer 视图?
在我正在开发的应用程序的 .xib 中,窗口中有一个 Quartz Composer 查看器对象 (QCView)。我还有一个补丁控制器(QCPatchController)。补丁控制器在 xCode 中有自己的类文件,但它们现在没有执行任何操作。按照苹果文档,我能够在 .nib 文件中绑定一些值,因此如果我编辑文本字段,它会将此值传递到 QC 文档上的已发布输入。不幸的是,这些文档没有提及如何以编程方式传递值。如何将值(以代码形式)传递给 QC 补丁?
提前致谢!
In a .xib for an application I'm working on, I have a quartz composer viewer object (QCView) in the window. I also have a patch controller (QCPatchController). The patch controller has its own class files in xCode, but they aren't doing anything right now. Following the apple docs, I was able to bind some values within the .nib file so if I edited a text field, it would pass this value to a published input on the QC document. Unfortunately, these docs say nothing about how to pass values programatically. How can I pass values (in code) to a QC patch?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该能够使用
-setValue:forKeyPath:
。例如:You should be able to use
-setValue:forKeyPath:
. For example: