[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] NSLua: Yet another ObjC-Lua bridge
- From: Simon Cozens <simon@...>
- Date: Sun, 4 Oct 2015 14:38:58 +0900
Hello all,
I'm in the middle of embedding Lua into an OS X app, and none of the
other ObjC bridges quite worked for me; they were either actually not
working at all, or difficult to install, or had horrific non-Lua-like
syntax on the Lua end.
So I took the best I could find (EasyLua,
https://github.com/CrimsonMoonEntertainment) and messed about with the
syntax, improved the number of data structures that could be marshalled,
made it easier to install, and here we go:
https://github.com/simoncozens/NSLua
Now you can write code like:
fileurl = NSURL:fileURLWithPath_(path)
dc = NSDocumentController.sharedDocumentController
dc:openDocumentWithContentsOfURL_display_error_(fileurl, true, nil)
Have fun,
S