dontWatchMyProfile
dontWatchMyProfile

Reputation: 46310

In which situations does a managed object context have changes?

In which situations does a managed object context have changes?

What can happen that -hasChanges returns YES?

Upvotes: 0

Views: 146

Answers (2)

Martin Brugger
Martin Brugger

Reputation: 3158

You can find out by observing NSManagedObjectContextObjectsDidChangeNotification notifications

NSManagedObjectContext notifications

Upvotes: 1

Massimo Cafaro
Massimo Cafaro

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

Related Questions