Producer Consumer Issue with Core Data
- by Mugunth Kumar
I've a Core Data application. In the producer thread, I pull data from a web service and store it in my object and call save.
My consumer object is a table view controller that displays the same.
However, the app crashes and I get
NSFetchedResultsController Error: expected to find object (entity: FeedEntry; id: 0xf46f40 ; data: ) in section (null) for deletion
on the console. When I debug it, everything works fine. So I understood that it's like a race issue.
How is these kind of problem solved? What's the best way to design a producer-consumer app with core-data?