To delete the persistent store, you need to close down the Core Data stack, delete the persistent store and then rebuild it the stack I would just use the tableview's beginUpdate method to freeze the table, then nil out the fetchedResults controller, then the Core Data stack. Delete the persistent store then rebuild the stack and create a new fetched results controller. Then tell the `endUpdate' and then tell the table to reload data.
That should all take brief time unnoticeable by the user.
To delete the persistent store, you need to close down the Core Data stack, delete the persistent store and then rebuild it the stack. I would just use the tableview's beginUpdate method to freeze the table, then nil out the fetchedResults controller, then the Core Data stack. Delete the persistent store then rebuild the stack and create a new fetched results controller.
Then tell the `endUpdate' and then tell the table to reload data. That should all take brief time unnoticeable by the user.
Thanks for your help, problem solved! – Nico Oct 18 '10 at 19:23.
Entries of a specific entity. Because looping over all managed objects and saving the context takes a very long time, I thought of deleting by removing the persistent store and rebuilding the stack. Now to my questions: How can I do this in the UITableViewController.
I don't want to restart the app for deletion so I want to move the code from the app delegate.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.