title: NSUndoManager : revert all the functionality of method
body: <p>I search lot about it but can't get more detail about what I want.</p>
  
  <p>Is it possible to reverse all the functionality performed any method with the help of <code>NSUndoManager</code> class.</p>
  
  <p><strong>For example</strong> : suppose I am deleting any row from table view or remove any subview from its superview in that method. can I reverse that things with the help of <code>NSUndoManager</code>.</p>
  
  <p>is <code>prepareWithInvocationTarget</code> method of <code>NSUndoManager</code> can helpful for that ?</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <p>Thanks in advance !!!</p>