Hello,
I did a small test to verify that indeed an error occurred.
Here is the relevant part of the code:
// Create our two peer editing contexts
NSManagedObjectContext *moc1 = newManagedObjectContext();
NSManagedObjectContext *moc2 = newManagedObjectContext();
// Instantiat
Hi!
On 2010/07/19, at 14:04, Paulo Andrade wrote:
> You have two threads (T1 and T2) each with their own managed object context
> (moc1 and moc2) which use the same persistent store coordinator.
>
> 1 - T1 reads ObjectX
>
> 2 - T2 reads ObjectX
> 3 - T1 makes some changes to ObjectX
> 4 - T2 m
Hello,
I'm trying to get my head around how Core Data handles optimistic locking
failures but still haven't figured this out.
This discussion is purely conceptual, I have no sample code to back my
assumptions, its purpose is to clarify what should happen in various scenarios.
Core Data uses sn