开发者

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

开发者 https://www.devze.com 2022-12-14 04:13 出处:网络
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 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?


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.


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.


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.


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


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

www.gnustep.org www.cocotron.org


This page on StackOverflow, answer 4. It worked great in my case.

Objective C for Windows

0

精彩评论

暂无评论...
验证码 换一张
取 消