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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -