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 - Unusual behaviour when drawing lots of images onto a large canvas -

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

javascript - Chart.js - setting tooltip z-index -