#include #include @interface Object(MyCategory) - foo; @end @implementation Object(MyCategory) - foo { printf("foo\n"); } @end main() { id o = [[Object alloc] init]; exit (0); } .