是否可以在Windows中执行Objective-C程序?

时间:2023-01-15 14:06:57

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.

我google了很多。有人说这样做。有些人说这是不可能的。在虚拟机等上安装Mac OS X等。

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

我有一个简单的问题。我可以在Windows 7机器上练习Objective-C编程吗?

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.

如果有,怎么样?如果可能,请为我提供必要的链接。我的最终目标是开发iPhone。但是现在我买不起MacBook。

So is it possible?

那有可能吗?

6 个解决方案

#1


16  

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

Objective-C,语言,绝对是的。至少,GCC(GNU Compiler Collection)编译Objective-C就好了。你可以得到Cygwin用于类似POSIX的完整环境,或者MinGW只提供用于编程的GNU工具链到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

但是,iPhone需要完全专有的Apple API;如果他们说“没有Windows”,那么它就不适用于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.

当然,iPhone API基于Cocoa,它基于NextSTEP。您可以通过OpenSTEP了解API。

But it's not iPhone.

但它不是iPhone。

#2


2  

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

是的,您可以在Windows上编译Objective-C。但对于iPhone开发,这个问题已经被问到了。

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

在*上有几个关于iPhone开发的类似问题,只是搜索它。

#3


2  

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.

值得一看的是Cocotron--旨在实现核心NeXTStep库的跨平台Apple兼容版本,FoundationKit和ApplicationKit。包括Windows。

#4


1  

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

GCC(http://gcc.gnu.org/)可以编译Objective-C。

#5


1  

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

答案是肯定的,但可能需要你做很多工作:

www.gnustep.org www.cocotron.org

www.gnustep.org www.cocotron.org

#6


0  

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

这个页面在*上,回答4.它在我的案例中运作得很好。

Objective C for Windows

适用于Windows的Objective C.

#1


16  

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

Objective-C,语言,绝对是的。至少,GCC(GNU Compiler Collection)编译Objective-C就好了。你可以得到Cygwin用于类似POSIX的完整环境,或者MinGW只提供用于编程的GNU工具链到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

但是,iPhone需要完全专有的Apple API;如果他们说“没有Windows”,那么它就不适用于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.

当然,iPhone API基于Cocoa,它基于NextSTEP。您可以通过OpenSTEP了解API。

But it's not iPhone.

但它不是iPhone。

#2


2  

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

是的,您可以在Windows上编译Objective-C。但对于iPhone开发,这个问题已经被问到了。

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

在*上有几个关于iPhone开发的类似问题,只是搜索它。

#3


2  

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.

值得一看的是Cocotron--旨在实现核心NeXTStep库的跨平台Apple兼容版本,FoundationKit和ApplicationKit。包括Windows。

#4


1  

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

GCC(http://gcc.gnu.org/)可以编译Objective-C。

#5


1  

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

答案是肯定的,但可能需要你做很多工作:

www.gnustep.org www.cocotron.org

www.gnustep.org www.cocotron.org

#6


0  

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

这个页面在*上,回答4.它在我的案例中运作得很好。

Objective C for Windows

适用于Windows的Objective C.