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.