title: Core Data: Reset to the initial state
body: <p>I have an object, I make some changes to it, but I don't want to save them, I want the 'old' values.</p>
  
  <p>I've tried with:</p>
  
  <pre><code>[managedObjectContext rollback];
  [managedObjectContext redo];
  [managedObjectContext reset];
  </code></pre>
  
  <p>and none of them seems to work ...</p>
  
  <pre><code>NSLog(@"current: %@",ingredient.name); // ===&gt; bread
  [ingredient setName:@"test new data"];
  NSLog(@"new: %@",ingredient.name); // ===&gt; test new data
  
  [managedObjectContext rollback];
  [managedObjectContext redo];
  [managedObjectContext reset];
  
  NSLog(@"current: %@",ingredient.name); // ===&gt; test new data
  
  // I want again ===&gt; bread
  </code></pre>
  
  <p>Should I refetch the object again ?</p>
  
  <p>thanks,</p>
  
  <p>r.</p>