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