home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
textUndo.subproj
/
TextSelColorChange.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1992-02-10
|
399 b
|
24 lines
#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