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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -