In which situations does a managed object context have changes?
What can happen that -hasChanges returns YES?
In which situations does a managed object context have changes?
What can happen that -hasChanges returns YES?
There are several possibilities: you inserted a new entity, you deleted an entity, you modified an entity(either an attribute or a relation).
You can find out by observing NSManagedObjectContextObjectsDidChangeNotification notifications