Replace This Implementation With Code To Handle The Error Appropriately
When you are developing using core data you use always a code snippet like [sourcecode language=“objc”] NSError *error = nil; if (![context save:&error]) { // Replace this implementation with code to handle the error appropriately. // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. NSLog(@“Unresolved error %@, %@”, error, [error userInfo]); abort(); } [/sourcecode] Hmmm, and how we could replace this implementation with code to handle the error appropriately is then next question. Mr fabian789 from stackoverflow.com has proposed a solution that I like very much. Explore it!