ios - NSFetchedResultsController change tracking -
i know nsfetchedresultscontroller
tracks changes bg context (i.e. merge changes).
does track changes main context?
i.e. if have nsfetchedresultscontroller
fetching person
objects , use "edit person" view change actual person
passed in controller see change?
a fetched results controller tracks only changes own context. if save changes on background context , merge changes main context, frc on main context see these changes (normally, see below). saying "tracks changes bg context" misleading.
whether frc sees non-persistent changes, depends on setting of includespendingchanges
in fetch request. default, value yes
, unless set value of resulttype
nsdictionaryresulttype
. in case, frc returns state of persistent store, , change tracking not work @ all.
Comments
Post a Comment