How to check that NSManagedObjectContext unsaved?
[context hasChanges]
returns a Boolean value that indicates whether the context has uncommitted changes.