user4951
user4951

Reputation: 33080

Can we create an NSManagedObject outside it's context?

Say I have a program. The program has a property called currentLocation.

Well when I construct currentLocation, if I add that to the context, that means I will end up keep adding new and new currentLocation object in the context?

Can I create currentLocation object outside it's context?

Or what would be a better solution?

Upvotes: 0

Views: 252

Answers (1)

Deepak Danduprolu
Deepak Danduprolu

Reputation: 44633

None of the changes are committed until you save. If you do not want to save something, you can always rollback.

Upvotes: 1

Related Questions