xcode C + 图形用户界面 + Mac 操作系统
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2545989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C + GUI + Mac OS
提问by cGio
i know c and I want to develop applications with GUI for Mac OS. Where do I start?
我知道 c 并且我想为 Mac OS 开发带有 GUI 的应用程序。我从哪里开始?
回答by Justin Niessner
回答by paul
- Buy Apple computer
- Install XCode from supplied DVD
- Run Software Update from system menu
- Run XCode
- Select Help menu, select "Developer Documentation"
- Click on any of the many things that say things like "Quick Start" or "Getting Started with XCode".
- Read
- Program
- GoTo 7.
- 买苹果电脑
- 从提供的 DVD 安装 XCode
- 从系统菜单运行软件更新
- 运行 XCode
- 选择帮助菜单,选择“开发者文档”
- 单击许多内容中的任何一个,例如“快速入门”或“XCode 入门”。
- 读
- 程序
- 转到 7.
回答by Brian R. Bondy
Downloading xcodewould be your first step. It's the main development environment for mac development and it's free. Then you'd want to get a book on Cocoaw/ Objective-Cor Carbonw/ C. Apple is pushing Cocoa more.
下载xcode将是您的第一步。它是mac开发的主要开发环境,而且是免费的。然后你会想要一本关于Cocoaw/ Objective-C或Carbonw/C 的书。Apple 正在更多地推动 Cocoa。
回答by Calculemus
The Simple DirectMedia Layer(SDL) library is yet another option. It is a cross-platform development library that can be used to write GUI-based applications for Mac OS in C.
在简单直接媒体层(SDL)库是另一种选择。它是一个跨平台的开发库,可用于用 C 为 Mac OS 编写基于 GUI 的应用程序。
回答by Andrea Girardi
You can also try with QT and C++. Try here:
您也可以尝试使用 QT 和 C++。在这里试试:
回答by Naaff
回答by David Thornley
I believe all Macs nowadays come with a complete set of development tools. They're not pre-loaded on the Mac, but are in the CD-ROM or DVD-ROM package. Alternately, you can go to Apple's site and poke around until you find the development section, and download Xcode. (It'll be the same thing, but possibly a newer version.)
我相信现在所有的 Mac 都带有一套完整的开发工具。它们没有预装在 Mac 上,而是在 CD-ROM 或 DVD-ROM 包中。或者,您可以转到 Apple 的网站并四处浏览,直到找到开发部分,然后下载 Xcode。(这将是同样的事情,但可能是更新的版本。)
Mac OSX uses a language called Objective-C, which is C extended with OO abilities that are more like Smalltalk than the more usual Simula type (in C++, say). While you don't actually have to use it much, it is how you'll be writing interface code.
Mac OSX 使用一种称为 Objective-C 的语言,它是 C 扩展的 OO 能力,比更常见的 Simula 类型(例如在 C++ 中)更像 Smalltalk。虽然您实际上不必经常使用它,但它是您编写界面代码的方式。
Further, it uses the Cocoa framework. There was a framework called Carbon, which was a cleanup and redesign of the pre-Mac OSX Macintosh system facilities, but it's being left behind.
此外,它使用 Cocoa 框架。有一个叫做 Carbon 的框架,它是对 Mac OSX 之前的 Macintosh 系统设施的清理和重新设计,但它被抛在了后面。
You can find free information on either if you look, or you can buy books on them. Books are probably a better resource to learn from.
您可以通过查看或购买有关它们的书籍来找到有关它们的免费信息。书籍可能是更好的学习资源。