Tracing/finding function calls and arguments made by an AppKit class method
Suppose I'm calling class method + (NSStatusBar *)systemStatusBar:
NSStatusBar *sB;
sB=[NSStatusBar systemStatusBar];
My question is what's the开发者_高级运维 best way to trace that class method call and find out what it is calling in terms of other methods and arguments?
Does this entail advanced disassembly beyond what XCode provides?
Thanks
Use DTrace, which is behind the Instruments. See an excellent introduction in this MacTech article.
精彩评论