Producer Consumer Issue with Core Data

Posted by Mugunth Kumar on Stack Overflow See other posts from Stack Overflow or by Mugunth Kumar
Published on 2009-05-23T19:37:07Z Indexed on 2010/03/22 20:41 UTC
Read the original article Hit count: 330

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?

© Stack Overflow or respective owner

Related posts about core-data

Related posts about iphone