home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / graphicsUndo.subproj / SendToBackGraphicsChange.m < prev    next >
Text File  |  1992-02-09  |  737b  |  35 lines

  1. #import "drawundo.h"
  2.  
  3. @interface SendToBackGraphicsChange(PrivateMethods)
  4.  
  5. - redoDetails;
  6.  
  7. @end
  8.  
  9. @implementation SendToBackGraphicsChange
  10.  
  11. - (const char *)changeName
  12. {
  13.     return NXLocalStringFromTable("Operations", "Send To Back", NULL, "The operation of sending all the selected graphical entities to the back of (behind) all other graphical entities.");
  14. }
  15.  
  16. - redoDetails
  17. {
  18.     int count, i;
  19.     id detail, graphic;
  20.     List *allGraphics;
  21.  
  22.     allGraphics = [graphicView graphics];
  23.     count = [changeDetails count];
  24.     for (i = 0; i < count; i++) {
  25.     detail = [changeDetails objectAt:i];
  26.     graphic = [detail graphic];
  27.         [allGraphics removeObject:graphic];
  28.         [allGraphics addObject:graphic];
  29.     }
  30.  
  31.     return self;
  32. }
  33.  
  34. @end
  35.