NSManagedObjectContext returns YES for hasChanges when there are none

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-04-28T18:12:26Z Indexed on 2010/04/28 18:17 UTC
Read the original article Hit count: 228

Filed under:
|
|

I created a separate NSManagedObjectContext on a separate thread to perform some store maintenance. However, I have noticed that the context returns YES for hasChanges as soon as a managed object in it is even referenced e.g.

NSString *name = managedObject.name;

This context is created and used exclusively in 1 method. Why is it returning has changes, when there there are none?

© Stack Overflow or respective owner

Related posts about core-data

Related posts about cocoa