File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / textUndo.subproj / TextSelChange.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 is used to represent a change in the current selection
 * (e.g., a font change). The contents and position of the selection are
 * saved before and after the change.
 */

@interface TextSelChange : TextChange
{
    int selStart;		/* selection start before change */
    int selEnd;			/* selection end before change */
    id oldSel;			/* selection data before change */
    id newSel;			/* selection data after change */
    const char *name;		/* name string */
}

/* Initialization method */

- initView:aView name:(const char *)str;

/* Free method */

- free;

/* Public methods */

- (const char *)changeName;
- saveBeforeChange;
- saveAfterChange;
- undoChange;
- redoChange;

@end

unix.superglobalmegacorp.com

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