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? [import]uid: 188 topic_id: 1148 reply_id: 301148[/import]

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

Tom [import]uid: 6119 topic_id: 1148 reply_id: 2997[/import]

. [import]uid: 5712 topic_id: 1148 reply_id: 3000[/import]

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?

[import]uid: 188 topic_id: 1148 reply_id: 3003[/import]