开发者

Tracing/finding function calls and arguments made by an AppKit class method

开发者 https://www.devze.com 2023-01-07 15:17 出处:网络
Suppose I\'m calling class method + (NSStatusBar *)systemStatusBar: NSStatusBar *sB; sB=[NSStatusBar systemStatusBar];

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消