Hi Heinz,
This thread seems to have gone off on a different tangent, but I thought it might still be helpful to know that Corona is heading toward supporting more business-like apps through frameworks written in Lua. You can find code for a scrollable list in our Sample Code:
http://developer.anscamobile.com/content/additional-samples
There’s also some sample code that works to wrap text:
http://developer.anscamobile.com/forum/2009/12/27/multiline-text#comment-2435
(Wrapping text on the device is on our roadmap, but the sample code above works until then.)
And Corona has built-in support for Lua socket, but I think you already know that, since you’re using it. Any Lua xml parsers you find on the Web should work well to parse XML into a table/array. I’ve used the XML parser on this page under “Classic Lua-only version” in Corona (and it’s very short): http://lua-users.org/wiki/LuaXml
I created a business-like app in Corona a few months ago. You can see it here: http://atasite.org/iPhone/ It downloads and caches an xml file from a website hosted by an independent microcinema in San Francisco. The app displays the data in a list. Touching an item in the list shows the full text description. I used .png images in the background of my elements to get the look I wanted. The hardest part was getting scrolling to happen smoothly, just because I wanted the right “feel”. Downloading data, checking the remote file and comparing the cached file, parsing the data–all much easier than if I tried to do that in Objective-C.
I’m working on generalizing my app so I can share the code, possibly as a framework for Corona.
-Gilbert
[import]uid: 5917 topic_id: 993 reply_id: 2436[/import]
