扩展 Dashcode 组件的最简单方法?
我目前正在 Dashcode 中开发一个项目,并且对默认类几乎没有像 jQuery 使用的可绑定事件的方式感到越来越沮丧。 Dashcode 不允许我编辑这些文件,我猜测这是因为在导出项目之前它们是一组标准的核心类。因此,我正在考虑扩展这些类,但不确定 Dashcode 如何将组件与类相关联。
有什么想法可以最好地完成这样的事情吗?
I'm presently working on a project in Dashcode, and am getting increasingly frustrated at how the default classes have very little in the way of bind-able events much like jQuery uses. Dashcode doesn't let me edit the files, which I'm guessing is because until the project is exported they're a standard set of core classes. I'm thus contemplating extending the classes, but am unsure how Dashcode relates a component to a class.
Any ideas how best to accomplish something like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“Dashcode 不允许我编辑文件”,您没有指定哪些文件,但您可能需要关闭 CodeGenerator,否则 dashcode 将恢复并重新生成您更改的代码。
您可能需要查看sencha,因为他们为此类事情提供了更全面的框架。还有许多其他框架。
"Dashcode doesn't let me edit the files," you don't specify which files but you may need to switch CodeGenerator off else dashcode will revert and regenerate code you change.
You might want to look at sencha as they do a more comprehensive framework for this sort of thing. There are many other frameworks out there as well.