Objective-C 中的消息流
有没有人有一个很好的参考资料,它真正概述了类、子类等之间的整个“消息流”如何在 Objective-C 中工作?它似乎对于 Mac 世界中的编程环境架构非常重要,并且对于理解非常有帮助。
Does anyone have a good reference which really outlines how this entire 'message flow' between classes, subclasses, etc.... works in Objective-C? It seems very central to the architecture of the programming environment in Mac world and would be very helpful to understand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尽管回答了问题的不同方面,但许多不同的问题都涵盖了这一点。
这个问题/答案似乎特别相关:
Objective-C : id 和 void 之间的区别 *
如果您对方法调用站点到底发生了什么感到好奇,我写了一篇冗长的多部分文章,给出了 objc_msgSend() 的逐指令浏览。
This has been covered in a number of different questions, though to answer different aspects of the question.
This question/answer, in particular, seems relevant:
Objective-C: difference between id and void *
If you are curious as to exactly what happens at a method callsite, I wrote quite the long winded multi-part article giving an instruction-by-instruction tour of objc_msgSend().