I would like to learn objective-c, but don't have a Mac.
How would I compile obj-c on Windows or Linux? I would prefer Windows, but Linux would be OK.
Netbeans. Netbeans is a free, open-source, and popular cross-platform IDE for C/C++ and several other programming languages. It is fully extensible using community-developed plugins.
In order to run Objective-C program on windows, we need to install MinGW and GNUStep Core. Both are available at https://www.gnu.org/software/gnustep/windows/installer.html. First, we need to install the MSYS/MinGW System package. Then, we need to install the GNUstep Core package.
Furthermore, Objective-C is a piece of art, creators packed genius solutions and were constantly improving it, so us developers were able to use it at our advantage. There are a lot of indicators telling us there's still a ton of legacy Objective-C code, both from Apple and from other developers, that's still in use.
Just like in C++, Objective-C relies in compiler-generated function pointer tables that are traversed at runtime. Unlike C++, however, the binding method is more 'dynamic', and promotes the use of the id superclass everywhere, making it slightly slower than C++ in theory.
GCC has an objective-C compiler. You may also want to investigate the GNUStep tools, which provide a clone of the OpenStep APIs (Which Cocoa is based on.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With