对于Windows,有Win32 API,对于Mac呢? [英] For Windows there is Win32 API, what about for Mac?

查看:301
本文介绍了对于Windows,有Win32 API,对于Mac呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Windows,有Win32 API,对于Mac呢?在Wikipedia上

For Windows there is Win32 API, what about for Mac? On Wikipedia

http://en.wikipedia.org/wiki/Cocoa_(API)

据说Cocoa是API的其中之一..."那么整个故事又如何呢?

it is said that Cocoa is "one of" the API... what about the full story?

推荐答案

在什么级别?低级API主要是但并非完全是FreeBSD,并且在其之下还存在一个Mach API(我相信有些东西仍将Mach端口用于IPC;我相信,至少已启动支持它们).在较高级别上有两个API:可可和碳.可可是本机API; Carbon适用于从较旧的MacOS移植的程序. (其中包括OSX本身的一部分;很长一段时间Finder都是Carbon应用程序.)

At what level? The low level API is largely but not entirely FreeBSD, and below that there is still a Mach API (some things still use Mach ports for IPC, I believe; at least, launchd supports them). At the upper level are two APIs: Cocoa and Carbon. Cocoa is the native API; Carbon is intended for programs ported from older MacOS. (Which includes parts of OSX itself; for a long time Finder was a Carbon app.)

实际上,Windows的情况并没有什么不同.长期以来,在32位Windows中一直存在Win16仿真API,而在Windows NT的早期,它同时具有POSIX和16位OS/2 API.

The Windows situation isn't all that different, actually; there was for a long time a Win16 emulation API present in 32-bit Windows, and in the early days of Windows NT it had both POSIX and 16-bit OS/2 APIs.

这篇关于对于Windows,有Win32 API,对于Mac呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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