ios - Is it necessary to call NSManagedObjectContext save: for in-memory stores? -
i'm using coredata in app, persistent store of type nsinmemorystoretype.
is ever necessary call nsmanagedobjectcontext save: type of store? passing save: nsmanagedobjectcontext anything in-memory stores?
apple's documentation states:
save:
attempts commit unsaved changes registered objects persistent store.
what mean in context of in-memory store?
i couldn't find documentation sure still needed.
core data has in-memory frontend (represented managed object context) , persistent backend ("store"). persistent backend file can reside inside memory nsinmemorystoretype.
for core data functions work, 2 parts must separated , push frontend (pending changes) backend (persistent data) via save operation.
note there can several managed object contexts (frontends) same store (backend) , each of them has different pending changes. note there methods haschanges , nsundomanager on every managed object context. still works in-memory store.
some info here
Comments
Post a Comment