This is TextExtensions.m in view mode; [Download] [Up]
//
// TextExtensions.m
// LGDCommunicationKit Examples, Release 1.0 (prerelease)
//
// Copyright (c) 1993, Looking Glass Design, Inc.
// All rights reserved.
//
// Project Manager: Paul Girone
// Original Author: Mike Gobbi
// Creation Date: June 11, 1993
// $Revision: 1.2 $
//
#import "TextExtensions.h"
@implementation Text(Extensions)
- appendString:(const char *)aString
{
return [self appendString:aString addNewline:YES];
}
- appendString:(const char *)aString addNewline:(BOOL)yn
{
int length = [self textLength];
[self setSel:length :0];
[self replaceSel:aString];
if (yn)
[self replaceSel:"\n"];
return self;
}
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.