XCode 中的脚本语言
我注意到 Java 有许多辅助脚本语言。例如 Clojure 和 Groovy。我的理解是,当不需要应用 Java 的全部威力和力量并且可以在 Groovy/Clojure 中快速破解时,可以使用这些。但最终,脚本工具贡献被编译到应用程序中
问题 1. XCode 中是否有类似的脚本?在这种情况下,我对 Python 或 Ruby 不太感兴趣,因为它们本身就是添加的语言,我认为 Java 中确实会发生这种情况,但我一直在寻找专门构建的工具。
问题 2. 如果有这样的工具,它是否会根据新的 Apple 指南(关于哪些内容可用于生成 iXxx 应用程序)将应用程序排除在外?
I notice that Java has a number of ancillary scripting languages. Clojure and Groovy for example. My understanding is that these can be used when the full might and power of Java does not need to be applied and a speedy cludge can be hacked in Groovy/Clojure. But at the end of the day the scripting tools contribution gets compiled into the application
Question 1. Is there a similar scripting in XCode? I was not so interested in Python or Ruby in this situation as they are languages in their own right added in, as indeed I think can happen in Java, but I was looking for a purpose built tools.
Question 2. If there is such a tool would it count the application out vis-a-vis the new Apple guidelines as to what can be used to generate iXxx apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
F-Script 是一种与 Objective-C/Cocoa 应用程序良好集成的脚本语言。可能不完全是您正在寻找的内容,但值得一看。
F-Script is a scripting language that integrates well with Objective-C/Cocoa applications. Might not be exactly what you're looking for, but it's worth a look.
对于这样的事情,有 AppleScript,它有自己的 IDE AppleScript Studio。它具有控制 Cocoa 应用程序的绑定,可以嵌入其中,甚至可以作为独立脚本工作。
问题是它无法集成到 iXxx 应用程序中,因为 iPhone-OS Cocoa Foundation 框架不包含它。
For such things there is AppleScript, with its own IDE AppleScript Studio. It has bindings to control Cocoa Applications, be embedded inside of them or even work as stand-alone scripts.
The problem is that it cannot be integrated inside iXxx applications because iPhone-OS Cocoa Foundation framework doesn't include it.
正如 mipadi 提到的,您可以将 F-Script 用于 Cocoa 应用程序。
如果你主要使用 C,那么 Lua 是另一个选择。
As mentioned by mipadi, you can use F-Script for Cocoa applicaitons.
If you are staying mainly in C, then Lua is another option.