home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
sampl254.zip
/
gcc2
/
samples
/
sample5
/
Node.m
< prev
next >
Wrap
Text File
|
1993-11-07
|
381b
|
29 lines
// Node.m - comp.lang.objective-c simple sample Objective-C program
#import <objc/Object.h>
#import "Node.h"
@implementation Node : Object
+ new: anItem
{
self = [super new];
next = 0;
data = anItem;
return self;
}
- free
{
id tmp = data;
[super free];
return tmp;
}
- next { return next; }
- set_next: aNode { next = aNode; return self; }
@end