为什么Apple使用Objective C? [英] Why Apple Uses Objective C?

查看:88
本文介绍了为什么Apple使用Objective C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么Apple决定将Objective-C用于iPhone SDK而不是C ++?

Why did Apple decide to use Objective-C for the iPhone SDK and not C++?

我觉得他们不会选择更受欢迎的语言比Objective-C。是不是因为想要在他们的应用程序中有一些独特的东西而不是一般用途?

It seems strange to me that they would not have chosen a language more popular than Objective-C. Is it because wanted to have something unique in their application which is not otherwise in general use?

推荐答案

Apple与NeXT合并90年代和Mac OS X是由NeXT的操作系统NeXTSTEP制作的。 Objective-C是NeXTSTEP应用程序框架的官方语言,后者成为Mac OS X的Cocoa。 Mac OS X随后被改编为iPhone OS,Cocoa被改编成Cocoa Touch。 Objective-C在整个过程中都表现得非常好,很多Cocoa的功能很难转化为C ++。

Apple merged with NeXT in the '90s and Mac OS X was made from NeXT's operating system, NeXTSTEP. Objective-C was the official language of NeXTSTEP's application frameworks, which became Mac OS X's Cocoa. Mac OS X was then adapted into the iPhone OS, and Cocoa was made into Cocoa Touch. Objective-C has held up pretty well all along the way, and a lot of Cocoa's features would be difficult to translate into C++.

所以基本上,它都来自NeXT 。

So essentially, it all comes from NeXT.

这篇关于为什么Apple使用Objective C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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