Dump all selectors from a class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|- (void)dumpAllSelector:(Class) SomeClass|
|id t = [[SomeClass alloc] init];|
|unsigned int mc = 0;|
|Method * mlist = class_copyMethodList(object_getClass(t), &mc);|
|NSLog(@"%d methods", mc);|
|NSLog(@"Method no #%d: %s", i, sel_getName(method_getName(mlist[i])));|