blob: 1a427ab12c18ba80c8bdc7a9f7bcdc9112ce76d4 [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 v2"); /* Whatever, just a place to break and examine SELF in gdb */
}
- showArg
{
puts ("showArg v2 called");
return object;
}
@end