home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / textUndo.subproj / PasteTextChange.h < prev    next >
Text File  |  1992-02-09  |  550b  |  24 lines

  1. /*
  2.  * This class represents text paste changes. Because the insertion point
  3.  * is left at the end of the new characters after a paste, this class
  4.  * has to calculate which characters were actually pasted.
  5.  */
  6.  
  7. @interface PasteTextChange : TextSelChange
  8. {
  9.     int textLength;        /* length of text before paste */
  10.     int selectionStart;        /* start of selection before paste */
  11.     int selectionLength;    /* size of selection before paste */
  12. }
  13.  
  14. /* Creation method */
  15.  
  16. - initView:textView;
  17.  
  18. /* Public methods */
  19.  
  20. - saveBeforeChange;
  21. - saveAfterChange;
  22.  
  23. @end
  24.