title: iPhone Core Data "Production" Error Handling
body: <p>I've seen in the example code supplied by Apple references to how you should handle Core Data errors. I.e:</p>
  
  <pre><code>NSError *error = nil;
  if (![context save:&amp;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. If it is not possible to recover from the error, display an alert panel that instructs the user to quit the application by pressing the Home button.
   */
      NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
      abort();
  }
  </code></pre>
  
  <p>But never any examples of how you <em>should</em> implement it.</p>
  
  <p>Does anyone have (or can point me in the direction of) some actual "production" code that illustrates the above method.</p>
  
  <p>Thanks in advance,
  Matt</p>