File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / textUndo.subproj / TypingTextChange.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:39 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

/*
 * This class represents a change to a text object caused by the user
 * typing characters or deleting characters with the delete key.
 */

@interface TypingTextChange : WholeTextChange
{
    int insertionPoint;		/* position of the cursor during change */
    int insertionMin;		/* low water mark of insertion point */
    int insertionMax;		/* high water mark of insertion point */
    TypingTextChange *subsumingChange;
    BOOL firstKeyDown;		/* YES if we haven't seen the first key yet */
    BOOL finished;	
}

/* Creation method */

- initView:aView;

/* Public Methods */

- saveBeforeChange;
- saveAfterChange;
- (BOOL)subsumeChange:change;
- finishChange;
- subsumedBy:change;
- (BOOL)canBeExtended;
- deleteCharacter;
- addCharacter:(int)ch;

@end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.