I'm curious if it is possible for the Lua portion of the code to run code that is part of the Xcode project. For example, I am guessing this is how Gideros works.
UIApplicationMain is created in main.mm. It calls application:didFinishLaunchingWithOptions in the app delegate. That adds the view control, and then calls gdr_initialize. The view controller and app delegate call various gdr functions to let gdr know that events have occurred, like app suspend, touch events, etc. All of the gdr stuff calls the appropriate functions in the Lua project.
But is the reverse possible? Is there a way in my Lua code to send a message or call a function that is in the Xcode app delegate or view controller object and get the result?