3 ms·
Wow, this is great. I recently spent a bunch of time integrating Lua and ObjC for a project; I'll have to see if I can replace all that glue with this library,
by gwillen 15y ago
Wow, this is great. I recently spent a bunch of time integrating Lua and ObjC for a project; I'll have to see if I can replace all that glue with this library, or if I have something I can contribute to it.
EDIT: What's the license on this? There's no indication at the top of the source, or anywhere that I can see. It turns out not to be the same as what I'm doing -- I'm calling from ObjC into Lua and back -- but there are still bits I'd love to reuse, if I could.
- seany 15y agoLuaCocoa does both sides of the bridge. You might try that.
- fyolnish 15y agoThe license is ISC, so you can do whatever you want with it. in order to call back into lua you can either use the standard C api. (This file from another project of mine might be a useful starting point: https://github.com/aptiva/Tranquil/blob/master/Tranquil/Core/ScriptContext.m https://github.com/aptiva/Tranquil/blob/master/Tranquil/Core...) Or use addMethod to add a lua function as a method to a class (You can use createClass to create a new class) I'll add a subclassing demo to the readme later today