Objective-C source code

Where can I find the source code for Objective-C? Is it open source or is there an open source implementation available?

+4
source share
4 answers

It really depends on what you mean by Objective-C, there are compilers, runtimes and libraries for it.

+8
source

I think you're asking for Cocoa - and it's not open source. All you have is heading and reverse engineering tools.

+2
source

Looking around, I found several copies of the Objective-C source code. Apple maintains it at http://opensource.apple.com/source/objc4/ , which is current with Mavericks OS X 10.9.x version 551.1, but I also found several GitHub repositories that are copies of this main repository that people made at different points in time, so they may or may not be as modern as Apple’s main storage. These include the GitHub repository "opensource-apple / objc4" version 532.2; "bavarious / objc4", which has been updated to version 551.1; "macmade / OBJC4-437.1-Runtime", which obviously only includes runtime Objective-C in version 437.1; "Apple-FOSS-Mirror / objc4" in version 532.2; "aosm", which is updated to version 551.1; "robertvojta / objc4", which has been updated to version 551.1; "j4n0 / objc4-532", which is obviously on version 532.0; and "chenniaoc / objc4-551.1", which, obviously, is relevant in version 551.1. Personally, it seems to me that robertvojta / objc4 is the best repository from which you could develop the code because it received every single version from the Apple Open Source website and is still copied to it.

+1
source

There is no source code. There would be as many different versions as there are compilers for the language. They are likely to be written in a low level language such as assembly or C, and will be significantly complex. For any compiler you are interested in, you will need to confirm that it is open source, which I consider unlikely. Even then it can be difficult.

0
source

All Articles