是否可以在Windows中执行Objective-C程序? [英] Is it possible to execute Objective-C programs in Windows?

查看:101
本文介绍了是否可以在Windows中执行Objective-C程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google上搜索了很多.有人说这样做.有人说这是不可能的.在虚拟机等上安装Mac OS X等.

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.

我有一个简单的问题. 我是否可以在Windows 7计算机上练习 Objective-C 编程?

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

如果是,怎么办?请(如果可能)向我提供必要的链接.我的最终目标是进行 iPhone 开发.但是现在我买不起 MacBook .

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.

那有可能吗?

推荐答案

Objective-C,这种语言,肯定是的.至少,GCC(GNU编译器集合)可以很好地编译Objective-C.您可以在完整的POSIX样环境中获得Cygwin,也可以得到MinGW,后者仅提供GNU工具链来对Win23 API进行编程

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

但是,iPhone需要完全专有的Apple API.如果他们说没有Windows",那么它就不适用于Windows

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

当然,iPhone API是基于Cocoa的,而Cocoa是基于NextSTEP的.您可以使用OpenSTEP感受一下API.

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.

But it's not iPhone.

这篇关于是否可以在Windows中执行Objective-C程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆