Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ashwinr87

macrumors member
Original poster
Mar 9, 2011
81
0
In my iPAD application, I am using Multithreading to read data from my database and hence I am using different manged object contexts as explained Fred McCann's blog

The problem I am facing is while deleting items from the database. When I try to delete, I get the error that the managedObjectContext cannot delete another objectContext's data. How do I solve this problem?

It would be great is someone could help me out with this.
 

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
An NSManagedObject is bound to the NSMangedObjectContext from which it came. Any time you manipulate or access a managed object, you use the associated managed object context.

If you haven't already, you might want to read the Concurrency with Core Data chapter of the Core Data Programming Guide.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.