I am using Widget 1.0 on build 1033. It keeps failing with the error shown below
2013-03-11 23:19:36.303 Corona Simulator[18987:f03] Version: 2.0.0
2013-03-11 23:19:36.303 Corona Simulator[18987:f03] Build: 2013.1033
2013-03-11 23:19:36.311 Corona Simulator[18987:f03] The file sandbox for this project is located at the following folder:
(/Users/shiva.paranandi/Library/Application Support/Corona Simulator/testRadio-39EE1563B5FBE985810075DC147F34EF)
2013-03-11 23:19:36.314 Corona Simulator[18987:f03] Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function <?:453>
(tail call): ?
/Users/shiva.paranandi/Shiva/testRadio/main.lua:8: in main chunk
2013-03-11 23:19:36.314 Corona Simulator[18987:f03] Runtime error:
2013-03-11 23:19:36.315 Corona Simulator[18987:f03] ?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function <?:453>
(tail call): ?
/Users/shiva.paranandi/Shiva/testRadio/main.lua:8: in main chunk
Hi. There were some incorrect things in that daily build which have since been rectified.
You are no longer required to pass a “data” parameter and “sheet” must be an imagesheet you have created via graphics.newImageSheet.
Thanks Danny. Do I need to upgrade to 1051 or do your comments apply to build 1033 also? One other in the widget-v1.lua posted on GitHub at https://github.com/coronalabs/widget-v1 does not have the newSwitch code. So I am not sure if I move to a newer build then how can I use the old widgets switch?
Widget v-1 doesn’t contain any of the new widgets nor the new widget library (just an fyi)
The switches are a new widget which don’t apply to widget v1
Interesting. I was looking at the docs here http://docs.coronalabs.com/api/library/widget/newSwitch.html and the revision says 2012.971. The Sample code in build 1033 also has code using the newSwitch and the simulator works with it. I don’t want to migrate to 1051 right now as I would have to redo a lot of my widget work. Anyway I can have the switch work in build 1033 as the sample code and the docs show that it is present in 1033. [import]uid: 103483 topic_id: 37573 reply_id: 145824[/import]
There was a bug in that version that simply made it impossible for it to be customized.
It was released in 971 but it was still using the new widget library, at the time the new widget library was calling the old widget libraries code for the other widgets (like tableViews, scrollViews ) etc.
Hi. There were some incorrect things in that daily build which have since been rectified.
You are no longer required to pass a “data” parameter and “sheet” must be an imagesheet you have created via graphics.newImageSheet.
Thanks Danny. Do I need to upgrade to 1051 or do your comments apply to build 1033 also? One other in the widget-v1.lua posted on GitHub at https://github.com/coronalabs/widget-v1 does not have the newSwitch code. So I am not sure if I move to a newer build then how can I use the old widgets switch?
Widget v-1 doesn’t contain any of the new widgets nor the new widget library (just an fyi)
The switches are a new widget which don’t apply to widget v1
Interesting. I was looking at the docs here http://docs.coronalabs.com/api/library/widget/newSwitch.html and the revision says 2012.971. The Sample code in build 1033 also has code using the newSwitch and the simulator works with it. I don’t want to migrate to 1051 right now as I would have to redo a lot of my widget work. Anyway I can have the switch work in build 1033 as the sample code and the docs show that it is present in 1033. [import]uid: 103483 topic_id: 37573 reply_id: 145824[/import]
There was a bug in that version that simply made it impossible for it to be customized.
It was released in 971 but it was still using the new widget library, at the time the new widget library was calling the old widget libraries code for the other widgets (like tableViews, scrollViews ) etc.