title: How can I ensure that Undo and Redo menu items have the action string added?
body: <p>I have undo/redo working in my app.</p>
  
  <p>I set the target of the undo and redo menu actions to my app delegate to implement the actions with undoAction: and redoAction: methods. The menu items' enabled bindings are bound to canUndo and canRedo properties of my undo manager and these work as expected. I set an action name when I push to the undo stack, but never see it in the menu.</p>
  
  <p>Why does my menu always say Undo or Redo, not Undo Move to Trash and Redo Move to Trash ? Does the menu item normally get updated by some magic I am bypassing? I have not used the responder chain because my app delegate is not in the responder chain, and so never sees the actions.</p>
  
  <p>The undo manager is created in my app delegate.</p>
  
  <p>Update: changing to use the window's undo manager makes no difference.</p>
  
  <pre><code>-(void)undoableRemoveItemsFromListAtIndexes:(NSIndexSet*)itemIndexes;
  {
      NSArray *removedItems = [[self.listController arrangedObjects] objectsAtIndexes:itemIndexes];
      [[self.undoManager prepareWithInvocationTarget:self] undoableAddItems:removedItems toListAtIndexes:itemIndexes];
      [self removeItemsFromListAtIndexes:itemIndexes];
      [self.undoManager setActionName:@"Move to Trash"];
  }
  </code></pre>