本文介绍了NSObject.m的源代码在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我试图找到 NSObject.m 的来源。 (我想比较 retain 和 release 的前后ARC实现。) 我已查看 http://www.opensource.apple.com/ 和 http://www.macosforge.org/ ,但无法找到。 NSObject 的源代码。 http:// www .opensource.apple.com / source / objc4 / objc4-532 / runtime / NSObject.mm 整个Objective-C运行时包可以从 http://www.opensource.apple.com/tarballs/objc4/objc4-532。 tar.gz 回顾一下网站上运行时软件包的以前版本,会出现 NSObject.mm 文件只包含在最新的软件包中。 I'm trying to find the source for NSObject.m. (I want to compare the pre and post ARC implementations of retain and release.)I've looked on http://www.opensource.apple.com/ and http://www.macosforge.org/ but not been able to find it. 解决方案 The source code for Apple's NSObject is contained in the Objective-C runtime package on Apple's open source repository site.http://www.opensource.apple.com/source/objc4/objc4-532/runtime/NSObject.mmThe whole Objective-C runtime package can be downloaded from http://www.opensource.apple.com/tarballs/objc4/objc4-532.tar.gzLooking back through the previous versions of the runtime package on the site it appears the NSObject.mm file is only contained in the most recent package. 这篇关于NSObject.m的源代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-05 11:42