Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to execute Objective-C programs in Windows?

I googled a lot. Some people are saying do this. Some are saying it's not possible. Install Mac OS X on a virtual machine, etc., etc.

I have a simple question. Is it possible that I can practice Objective-C programming on a Windows 7 machine?

If yes, how? Please, if possible, provide me with a necessary link. My ultimate goal is to go for iPhone development. But right now I can't afford a MacBook.

So is it possible?

like image 434
Mohit Jain Avatar asked Dec 14 '09 22:12

Mohit Jain


2 Answers

Objective-C, the language, definitely yes. At the very least, GCC (GNU Compiler Collection) compiles Objective-C just fine. You can get either Cygwin for the full POSIX-like environment, or MinGW which gives just the GNU toolchain for programming to the Win23 API

But, iPhone needs the Apple API, which is totally proprietary; if they say 'No Windows', then it's just not available for Windows

Of course the iPhone API is based on Cocoa, which is based on NextSTEP. You can get the feel of the API with OpenSTEP.

But it's not iPhone.

like image 133
Javier Avatar answered Sep 28 '22 17:09

Javier


Yes you can compile Objective-C on Windows. But for iPhone development this question was already asked.

And there are several similar questions about iPhone development here on Stackoverflow, just search for it.

like image 21
Felix Kling Avatar answered Sep 28 '22 15:09

Felix Kling