views:

421

answers:

5

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?

+1  A: 

GCC (http://gcc.gnu.org/) can compile Objective-C.

Anon.
+9  A: 

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.

Javier
+2  A: 

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.

Felix Kling
+1  A: 

The answer is yes, but it will probably require quite a lot of work on your part:

www.gnustep.org www.cocotron.org

Felixyz
+1  A: 

It's worth taking a look at Cocotron— that aims to implement a cross-platform Apple-compatible version of the core NeXTStep libraries, the FoundationKit and ApplicationKit. Windows included.

Jim Dovey