File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / textUndo.subproj / TextSelection.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 records a contiguous selection of characters from a text
 * object.
 */

@interface TextSelection : Object
{
    NXRect frame;		/* frame when created */
    int start;			/* first position in selection */
    int end;			/* last position in selection */
    NXStream *selectionChars;	/* RTF stream of selection */
    UndoText *text;		/* the text object in question */
    int clickCount;		/* saved from Text object */
    BOOL allText;		/* YES if we're saving the whole text object */
}

/* Creation methods */

- initText:aView;
- initText:aView start:(int)aPos end:(int)anotherPos;

/* Free method */

- free;

/* Access methods */

- (int)clickCount;
- setClickCount:(int)value;

/* Public methods */

- capture;
- install;
- remove;

@end

unix.superglobalmegacorp.com

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