Great tutorial, thanks!
But I think that the finished project is incorrect. In
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
I had missed that detail, thank you for your response!
"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
updateJournalEntry function, when save button was tapped.
This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!