wwu-pi / md2-framework

MD2 – Model-driven Mobile Development
Apache License 2.0
14 stars 10 forks source link

Reloading a local content provider does not reset entities #3

Closed sacnl closed 11 years ago

sacnl commented 11 years ago

Attribute values etc that have been changed since loading are not reset to their persistent values.

NSManagedObjectContext executeFetchRequest does not overwrite changes. According to http://lists.apple.com/archives/cocoa-dev/2012/Jan/msg00173.html, this might not be so easy. Possible solution: manual undo - http://stackoverflow.com/questions/2214343/core-data-reset-to-the-initial-state

sacnl commented 11 years ago

Solution found here and successfully implemented as a prototype in a generated app. To be integrated into framework.