The code in the following gist works fine as a script In Pythonista. When I copy it into Script.py is a python template it will build and run and display the TableView and then fail (with an exception) later.
https://gist.github.com/zencuke/9fd9ef0ee97af56301cb
To make it fail enter a number into the TextField and press save. The data should show up in the TableView. Do it again. The second time fails for me. There are different paths through the code that get the same failure. What they all have in common is updating the TableView. The exception thrown follows:
PythonistaProject`-[SUITableView tableView:didEndDisplayingCell:forRowAtIndexPath:] at simpleuimodule.m:
2014-10-30 03:35:14.283 PythonistaProject[523:61887] +[UIResponder omfirstResponder]: unrecognized selector sent to class 0x33448ea0 2014-10-30 03:35:14.286 PythonistaProject[523:61887] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIResponder omfirstResponder]: unrecognized selector sent to class 0x33448ea0'
This is a substantially simplified version of the original app. I would be happy to simplify it more if that would help debug. Note: Turning on exception breakpoints before running gives a more meaningful stack trace (thanks jonB.) I'm running the latest xcode on the latest osx yosemite.
Thanks
-steve (aka zencuke)