views:

20

answers:

2

In which situations does a managed object context have changes?

What can happen that -hasChanges returns YES?

+2  A: 

There are several possibilities: you inserted a new entity, you deleted an entity, you modified an entity(either an attribute or a relation).

unforgiven
+1  A: 

You can find out by observing NSManagedObjectContextObjectsDidChangeNotification notifications

NSManagedObjectContext notifications

Martin Brugger