用于在C ++中编写Mac OS X应用程序的完整解决方案

问题描述:

我正在寻找我目前盒子和Mac OS X的替代品似乎非常有吸引力。

I am looking for alternatives for my current box and Mac OS X seems very appealing.

我的主要兴趣领域是C ++编程。目前我使用Eclipse + CDT和g ++创建我的软件;有时它是KDevelop。

My main area of interest is C++ programming. Currently I'm using Eclipse + CDT and g++ for creating my software; sometimes it is KDevelop.

我知道Mac的主IDE是Xcode,主语言是Objective-C。我想避免学习Objective-C如果可能的话。我也听说/读到从C ++访问Mac OS X API有一些问题。

I know that primary IDE for Mac is Xcode and primary language is Objective-C. I would like to avoid learning Objective-C if at all possible. I've also heard/read that there are some issues in accessing Mac OS X APIs from C++.

因此我的问题:
什么是完整的解决方案开发/调试/测试访问Mac OS X硬件(UI,声音,视频/加速视频等)的所有方面的C ++应用程序?

Hence my question: what is the complete solution for developing/debugging/testing C++ applications that access all aspects of hardware (UI, sound, video/accelerated video, etc.) for Mac OS X?

Xcode与Eclipse + CDT组合相比?如果这个比较是可能的...

how does Xcode compare to the Eclipse+CDT combo? If this comparison is at all possible...

如果你想使用C ++而不是Objective-为避免图书馆(例如QT)的中间层,您可以使用

If you want to use C++ instead of Objective-C, and still want to avoid an intermediate layer of libraries (such as QT), you can use Carbon.

我将使用XCode代替Eclipse,因为Eclipse在处理硬核C / C ++编程(编译,调试,测试)时速度较慢。

I would use XCode instead of Eclipse simply because Eclipse is way slower when dealing with hardcore C/C++ programming (compiling, debugging, testing).

当我第一次开始在Mac OS X中编程时,我在同一个页面,你现在。我认为最好坚持我所知道的语言(C ++),并使用较旧的库(Carbon)。由于某种原因,我现在不记得,我强迫自己进入Cocoa(Objective-C)。回头看,我认为这是一件好事,因为:

When I first started to program in Mac OS X, I was in the same page you are now. I thought it was better to stick to the language I knew (C++) and use an older library (Carbon). For some reason I don't remember now, I forced myself into Cocoa (Objective-C). Looking back, I think it was a good thing because:


  1. Objective-C与C ++没有本质区别

  2. Cocoa比Carbon更好,更快,更简单

  3. iPhone Dev是唯一的Cocoa(不支持Carbon)