This is String.m in view mode; [Download] [Up]
#import <stdlib.h> #import <string.h> #import "String.h" @implementation String + new:(const char *)aString { self = [super new]; string = malloc(strlen(aString)+1); strcpy(string,aString); return self; } - (const char*)string { return string; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.