title: How do you delete a core data entry from the detail view?
body: <p>I am working with an app similar to apple's core data recipes sample code.  I want to be able to delete the entry from the detail view, much like apple's contacts app.</p>
  
  <p>The code below is deleting the 1st entry and not the selected entry.  Not sure what I am doing wrong.</p>
  
  <pre><code>NSIndexPath *indexPath = [myTableView indexPathForSelectedRow];
  NSManagedObjectContext *context = [fetchedResultsController managedObjectContext];
  [context deleteObject:[fetchedResultsController objectAtIndexPath:indexPath]];
  [myTableView reloadData];
  </code></pre>