Hi All,
I am unsure whether this is a bug, or just something I am doing wrong (although it does occur in the Core Data sample app). If you click the (+) button to add a new object to the STV, background the app (by pressing the Home button), and then return to the app the new object detail view is still on screen, as you would expect. However, if you then click the Done button (to save the detail view) the app crashes with the following error:
2011-01-22 14:07:18.112 Core Data App[2731:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 1'
I assume that this is because when the app is backgrounded the temporary managed object (created when the Add detail view is displayed) is deleted. However, it is not properly re-created when the app comes back into the foreground. I am using STV 2.0 Beta 5.
Thanks,
Matthew