#import <objc/objc-runtime.h>
const char *name = class_getName([NSObject class]);
printf("%s ", name);
void PrintObjectMethods() {
unsigned int count = 0;
Method *methods = class_copyMethodList([NSObject class],&count);
for (unsigned int i = 0; i < count; ++i) {
SEL sel = method_getName(methods[i]);
const char *name = sel_getName(sel);
printf("%s ", name);
}
free(methods);
}