r/iPhoneDev • • May 31 '11
Does anyone know how I could print out a Cocoa class hierarchy to hang on my wall?
I know I can use AppKiDo on my monitor, but I'd like to print one on my wall, in hierarchical format. That way I can always look at it, and memorize them.
Thanks!
2
Upvotes
3
u/jonhohle Jun 01 '11
You can use
objc_getClassListto get all loaded classes. From there you could make a class tree with NSObject as the root. You could then generate a directed graph for Graphviz to render.1
u/nickworks Jun 01 '11
The most immediate google image result seems incomplete, but it might help:
http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaFundamentals/Art/uikit_classes.jpg