Ability to call arbitrarty Objective C code like iPhone Wax

8 replies [Last post]
MindJuice
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 15 Jun 2010

I've been playing with iPhone Wax lately, and I really like the ability to call any Objective C code from Lua.

This means I don't have to wait around for anyone (like you guys :-P) to "support" a particular new feature in the iOS. All features are immediately available.

Is it possible to extend Corona in this way so that it's Lua implementation works like iPhone Wax?

It would be even better if I could call my own Objective C methods from Lua in Corona, but this would probably require a full-fledged project model like XCode so that you could compile all the Objective C and package that up into a .app file.

Thanks,

Ken

Replies

MarkHenryC
User offline. Last seen 5 weeks 1 day ago. Offline
Joined: 11 Nov 2009

I second this. While it gets away from the Corona x-platform development model, it would address Apple's biggest objection to third party tools by making any new iOS features immediately available.

On another tack, being able to inject plain platform-independent C code would be handy for some performance critical stuff. For example, if there was a generic framebuffer and audiobuffer made available (a bit like the way SDL works).

akhtar
User offline. Last seen 3 weeks 8 hours ago. Offline
Joined: 25 Jun 2009

I know they have already said no to adding this functionality, but I'd like to second the point that lack of access to the native API and inability to use new features as they are added to the OS is the whole reason Apple gave for not allowing Flash.

a1rex
User offline. Last seen 1 year 14 weeks ago. Offline
Joined: 28 Aug 2010

Since the problem is already technically solved in the iPhone Wax the only issue here is a willingness of the Ansca to add it to Corona.

At the very least the binding to the C/C++ code should be provided.

Tom
User offline. Last seen 35 min 56 sec ago. Offline
Ansca Staff
Joined: 13 Jul 2010

We have talked about allowing access to the native API but for now we are busy trying to fix all the known bugs and provide the promised features for the upcoming 2.0 release. We are also working a list of 2.1 features, and I can't promise it, I'm hopeful this one will be on the list.

Thanks,
-Tom

a1rex
User offline. Last seen 1 year 14 weeks ago. Offline
Joined: 28 Aug 2010

Tom, thank you for your answer. Access to the native API's will be terrific extension.

It will win unconvinced developers over to Corona.

Many developers consider lack of access to the native API as a serious shortcoming and big obstacle for their projects.

benny.gortez
User offline. Last seen 7 weeks 1 day ago. Offline
Joined: 13 Mar 2011

Any news on this front?

Wizem
User offline. Last seen 7 weeks 3 days ago. Offline
Joined: 10 Aug 2010

This is definitely the biggest limitation I've run into as a developer.

jedipapi
User offline. Last seen 5 weeks 3 days ago. Offline
Joined: 24 Jun 2009

Is this still been considered? This will make Corona a low floor, high ceiling type of solution.

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.