Hi Matthew,
Great tutorial, thanks!
But I think that the finished project is incorrect. In JournalListViewController's method prepare, the temporary context has to be created in "SegueListToDetailAdd" segue, not in "SegueListToDetail". Am I right?
No, the final project for this tutorial is right. The tutorial just talks about editing not adding new entries. In the book the chapter goes further and does update the "SegueListToDetailAdd".
Ok,
I had missed that detail, thank you for your response!
However, in "SegueListToDetail" I don’t think create a new NSManagedObjectContext will be necessary. We can do detailViewController.journalEntry = surfJournalEntry directly, because surfJournalEntry object will be modified only in JournalEntryViewController's updateJournalEntry function, when save button was tapped.