ios - what's the different between refreshObject:mergeChanges: and set object to nil? -
if use method
[moc refreshobject:employee mergechanges:no];
, employee turned fault , pending changes lost. think can setting employee nil, don't know what's difference between them.
employee = nil
sets pointer managed object nil
, not reset object in managed object context @ all.
Comments
Post a Comment