开发者

C + GUI + Mac OS

i know c and I want to dev开发者_StackOverflow中文版elop applications with GUI for Mac OS. Where do I start?


Learn Objective-C.

Then pick up Cocoa (and all of the Frameworks that go with it)


  1. Buy Apple computer
  2. Install XCode from supplied DVD
  3. Run Software Update from system menu
  4. Run XCode
  5. Select Help menu, select "Developer Documentation"
  6. Click on any of the many things that say things like "Quick Start" or "Getting Started with XCode".
  7. Read
  8. Program
  9. GoTo 7.


Downloading xcode would 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 Cocoa w/ Objective-C or Carbon w/ C. Apple is pushing Cocoa more.


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.


While there is Carbon, it's a framework that's not first-class going forward. If you want to make sure that you can access all of the features of Mac OS X, you'll want to learn Objective-C and use Cocoa.


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 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.

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.

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.


You can also try with QT and C++. Try here:

http://qt.nokia.com/products/platform/qt-for-mac

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜