home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / AppKit / Draw / textUndo.subproj / CutSelection.h next >
Encoding:
Text File  |  1992-02-10  |  517 b   |  24 lines

  1. /*
  2.  * This class saves the characters in the selection but maintains
  3.  * another start/end pair so the visible selection can be different
  4.  * than the characters that were saved.
  5.  */
  6.  
  7. @interface CutSelection : TextSelection
  8. {
  9.     int visibleStart;        /* start of selection to be shown */
  10.     int visibleEnd;        /* end of selection to be shown */
  11. }
  12.  
  13. /* Creation method */
  14.  
  15. - initText:aView start:(int)aPos end:(int)anotherPos;
  16.  
  17. /* Public methods */
  18.  
  19. - install;
  20. - (int)visibleLength;
  21. - setVisible:(int)start :(int)end;
  22.  
  23. @end
  24.