3lvis / DATAStack

100% Swift Simple Boilerplate Free Core Data Stack. NSPersistentContainer
Other
214 stars 44 forks source link

newMainContext() method (issue #74) #77

Closed Sorix closed 8 years ago

Sorix commented 8 years ago

I’ve made new method, that is helpful in UI operations when user can discard own changes, backgroundContext is not solution here.

I had posted an issue #74 before, but I don’t like proposed solution Core Data → JSON → Core Data conversion to simply save or discard data, I don’t think that is the best way to do such task.

I ask to check code, because I’ve copy-pasted some code and I don’t know full tests structure (I’ve done tests, but I don’t know if they are working properly). Maybe I have some fatal error at my method.

Sorix commented 8 years ago

I have found better idea to do so, will post pull request little later.

3lvis commented 8 years ago

Looking forward :)