This is catTest.m in view mode; [Download] [Up]
#import <objc/Object.h>
@interface Object (Foo)
-foo;
@end
@implementation Object (Foo)
-foo { return self; }
@end
void main()
{
id foo = [Object new];
[foo foo];
}These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.