2 ms·
Amazing. Can you use this to run a LuaCocoa example? Like https://bitbucket.org/ewing/luacocoa/src/e939d422b62a/LuaCocoa/Samples/MinimalAppKit/MinimalAppKit.lua
by rainysunday 15y ago
Amazing. Can you use this to run a LuaCocoa example? Like https://bitbucket.org/ewing/luacocoa/src/e939d422b62a/LuaCocoa/Samples/MinimalAppKit/MinimalAppKit.lua https://bitbucket.org/ewing/luacocoa/src/e939d422b62a/LuaCoc...
Can you load a framework with this?
I know hardly anything about Objective-C.
- fyolnish 15y agoThere's no need to load a framework since linking to a framework means all of it's classes are added to the runtime. You simply request the class you want. That is, if you are embedding lua in your app. I haven't tried using TLC from the standalone luajit interpreter, but in that case you would probably have to use fii.load() to load the Framework & libobjc before being able to use objc. But that is not what it was designed for To translate a LuaCocoa example you'd in most cases just have to add objc_loadClass calls for any class you want to use, and use dots instead of colons to call methods (obj:method() -> obj.method() ).