tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/6363-what-happens-if-object-is-updated-but-not-syncdInfinite Kind: Discussion 2021-07-25T12:29:58Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/492957702021-07-25T12:29:52Z2021-07-25T12:29:52ZWhat happens if object is updated but not sync’d?<div><p>From Sean…:</p>
<ol>
<li>
<p>those objects would just sit around in editing mode until the next time that they are synced or updated. If you restart MD while they are in editing mode then the changes are lost. So... good to remember to syncItem()!</p>
</li>
<li>
<p>That should be fine. The same object is kept around... if it is updated, then the same instance of the object will be updated.</p>
</li>
</ol>
<p>FYI .itemWasUpdated() is called after the underlying SyncRecord is updated. It will reload the object fields from SyncRecord/info. But the object instance should be the same.</p>
<p>So, questions answered. Thanks.</p></div>Stuart Beesley (Mr Toolbox)