Accessing ObjectiveC routines from lua

Is it possible to write a routine in objectiveC and then access it in Lua? And I guess a similar question would arise for Java routines on Android

What I want to do is list the files in a directory, various forum posts claim this cannot be done in Lua on iOS. However it seems to be possible in ObjectiveC, though I haven’t done it only found posts showing how to do it. So I’d like to write the routine in Objective C and access it.

I am not hopeful but wanted to ask as my search didn’t show up anything

Thanks [import]uid: 141523 topic_id: 25870 reply_id: 325870[/import]

Hey there,

Sorry but no, this isn’t possible at the current time.

Peach [import]uid: 52491 topic_id: 25870 reply_id: 104625[/import]

Thanks for the quick reply.

Regards

john [import]uid: 141523 topic_id: 25870 reply_id: 104716[/import]

Like Peach said, this is currently not possible. You would need something like LuaCocoa in Corona for something like this to be possible. As the author of LuaCocoa, I am very interested in seeing this happen, but a major unknown is whether an app would get past the App Store review process.
[import]uid: 7563 topic_id: 25870 reply_id: 104768[/import]

Seems unfair if such an app were rejected as Objective C apps can do it.

I just want to use the file sharing feature to allow my users to download a photo or two to the application. I don’t want to tell them these photos must have fixed names. Would make my app, and me, look stupid.

I imagine most games don’t need this so it hasn’t been a problem.

I guess I can come up with some web solution, but that seems like a lot of work for something that seemed so simple.

Hopefully LuaCocoa will make it into a build some day.

regards [import]uid: 141523 topic_id: 25870 reply_id: 105242[/import]