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

  1. /*
  2.  * This class represents a change to a text object caused by the user
  3.  * typing characters or deleting characters with the delete key.
  4.  */
  5.  
  6. @interface TypingTextChange : WholeTextChange
  7. {
  8.     int insertionPoint;        /* position of the cursor during change */
  9.     int insertionMin;        /* low water mark of insertion point */
  10.     int insertionMax;        /* high water mark of insertion point */
  11.     TypingTextChange *subsumingChange;
  12.     BOOL firstKeyDown;        /* YES if we haven't seen the first key yet */
  13.     BOOL finished;    
  14. }
  15.  
  16. /* Creation method */
  17.  
  18. - initView:aView;
  19.  
  20. /* Public Methods */
  21.  
  22. - saveBeforeChange;
  23. - saveAfterChange;
  24. - (BOOL)subsumeChange:change;
  25. - finishChange;
  26. - subsumedBy:change;
  27. - (BOOL)canBeExtended;
  28. - deleteCharacter;
  29. - addCharacter:(int)ch;
  30.  
  31. @end
  32.