<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -29,10 +29,24 @@
 
 - (void)addOvalsObject:(NSValue *)aValue {
   NSLog(@&quot;- addOvalsObject:%@]&quot;, aValue);
+  
+  NSUndoManager *undo = [self undoManager];
+  [[undo prepareWithInvocationTarget:self] removeOvalsObject:aValue];
+  if (![undo isUndoing]) {
+    [undo setActionName:@&quot;Create Oval&quot;];
+  }
+  
   [ovals addObject:aValue];
 }
 - (void)removeOvalsObject:(NSValue *)aValue {
   NSLog(@&quot;- removeOvalsObject:%@]&quot;, aValue);
+  
+  NSUndoManager *undo = [self undoManager];
+  [[undo prepareWithInvocationTarget:self] addOvalsObject:aValue];
+  if (![undo isUndoing]) {
+    [undo setActionName:@&quot;Remove Oval&quot;];
+  }
+  
   [ovals removeObject:aValue];
 }
 </diff>
      <filename>OvalFun/MyDocument.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ed163277cee4288bde433778a8843c0f27c8c17</id>
    </parent>
  </parents>
  <author>
    <name>elliottcable</name>
    <email>git@elliottcable.name</email>
  </author>
  <url>http://github.com/elliottcable/cocoa_play/commit/a6e73fc769f2f34aa3df096c79599408121d0584</url>
  <id>a6e73fc769f2f34aa3df096c79599408121d0584</id>
  <committed-date>2009-01-09T16:00:03-08:00</committed-date>
  <authored-date>2009-01-09T16:00:03-08:00</authored-date>
  <message>Added undo and redo support</message>
  <tree>8314a721aed9100ad45d2443d8983ff3f40ab244</tree>
  <committer>
    <name>elliottcable</name>
    <email>git@elliottcable.name</email>
  </committer>
</commit>
