ftp.nice.ch/pub/next/science/mathematics/HippoDraw.2.0.s.tar.gz#/HippoDraw/Hippo.bproj/Draw.subproj/textUndo.subproj/TextSelColorChange.m

This is TextSelColorChange.m in view mode; [Download] [Up]

#import "textundo.h"

@implementation TextSelColorChange

- (BOOL)subsumeChange:nextChange
{
    NXSelPt start, end;

    if ([nextChange class] == [TextSelColorChange class]) {
	[textView getSel:&start :&end];

	if (start.cp == selStart && end.cp == selEnd) {
	    [newSel free];
	    newSel = [[[TextSelection alloc] initText:textView] capture];
	    return YES;
	}
    }

    return NO;
}

@end

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.