blob: 985cfc3acf49e25161cc884238509526a355b7e9 [file] [log] [blame]
#import <Foundation/Foundation.h>
#import "class.h"
@implementation MyClass
+ newWithArg: arg
{
id obj = [self new];
[obj takeArg: arg];
return obj;
}
- takeArg: arg
{
object = arg;
[object retain];
return self;
}
- sayHello
{
puts ("hi v1"); /* Whatever, just a place to break and examine SELF in gdb */
}
- showArg
{
puts ("showArg v1 called");
return object;
}
@end