File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / Draw / textUndo.subproj / DeleteTextChange.m
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

#import "textundo.h"

#define DELETE_OPERATION NXLocalStringFromTable("Operations", "Delete", NULL, "The operation of pressing the delete key to remove the selected graphical entites or text from the document entirely.")

@implementation DeleteTextChange

/*
 * This class is only around so that the UndoText class can determine
 * when its delete: method is being called as a result of a Delete
 * keypress. This is done with 
 *               [changeObject isKindOf:[DeleteTextChange class]].
 */

- initView:aView
{
    return [super initView:aView name:DELETE_OPERATION];
}

@end

unix.superglobalmegacorp.com

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