Mixed Lua and Native iWhatever API's?

I'm very familiar with Lua having used it for years in my embedded systems work. So when I decided that iWhatever development was interesting to me, news that I could do it in Lua with Corona was great news. And then I read the API listing and didn't see what I needed.

I can say that the vast majority of what I want to do can be done entirely with the Corona SDK. But not all of it. And so I would like to be able to use some of Apple's API's from my Lua code. I have no problem creating the necessary wrappers to expose those APIs to Lua, but that requires being able to extend the application by linking in my extensions. When I look through the various documentation available online, I don't see any discussion of how to do that or if people are currently doing that.

So, is this possible?

Extending the SDK is not possible at this time. This has been requested before in this forum.

Tom

.

I'm extremely sorry to hear the SDK can't be extended. It makes Corona nearly useless to me if every time I want to call an Apple API, I have to wait for Ansca to support it. Given the velocity Apple is moving, Corona will always be behind what Apple offers.

If there is a work-around the developers here have come up with, I'd love to hear it.

I can't imagine it would be difficult for Corona to provide this. During the initialization of Lua, call a hook function that provides the Lua context. Use a weak symbol; if the user doesn't define the symbol, then a default dummy function would be called. If the user did provide such a symbol, then the linker would use that. After all, from what I read, Corona works by linking against the Apple SDKs; can't it additionally link against user libraries?

views:1474 update:2011/10/4 8:06:35
corona forums © 2003-2011