View Full Version : "Carbon C++ Application"

Mar 4, 2008, 10:24 PM
Ok I've tried searching for some info on this but I can't really find anything good so here goes the question/s:

What is it that you get when you create a project called "Carbon C++ Application" and what else do you have to add/create in order to say get a button to change some text?

Any step by step or tutorial to follow that anyone could recommend?

I did create a button but then I just don't know what to do past that, if anyone could help me or point me in the right direction I would really appreciate it.

Thank you in advance!

Mar 5, 2008, 07:03 AM
I recently bought the book "Learning Carbon" off the used bookshelf on Amazon. I think I paid $1. It was written for OS 9 and Project Builder (the mother of Xcode), but I have been making my way through it with only a few hiccups (running Tiger).

Apple still has plenty of Carbon doc on their website here: http://developer.apple.com/documentation/Carbon/Conceptual/HandlingWindowsControls/hitb-wind_cont_concept/chapter_2_section_2.html#//apple_ref/doc/uid/TP30001004-CH205-TPXREF120

That's not the first page, but a page I have referred to a lot while learning the Carbon programming paradigm. (I hate that word - but sometimes it's just the right one).


Dec 29, 2008, 01:54 PM
Apple really hasn't got enough support for c++ in my opinion, it's like they wanna make it impossible, so you go to objective-c

Dec 29, 2008, 02:04 PM
It's more that it costs a lot of engineering time and effort to support multiple APIs.

Dec 29, 2008, 02:27 PM
What Apple is focusing its resources on is the Cocoa frameworks for application development. To make something really fast, or full featured, you need a framework. Apple provides one for the Mac: Cocoa, and one for the iPhone: Cocoa Touch.

Carbon has evolved into a behind-the-scenes middleware and is actually powering the Cocoa and Foundation framework these days more and more (window server and the Dock are still Carbon apps basically).

If you want to go the C++ route get a C++ framework that is Mac compatible and learn that framework. Qt is used in Safari/WebKit as the abstraction layer, there's also Mono which lets you work with C# (C sharp) and .NET on Windoze.

Making a C++ framework along side Cocoa would severely cost Apple resources it needs to focus on what makes most sense for the company to advance (and compete with Microsoft).

Dec 30, 2008, 04:10 AM
Qt is used in Safari/WebKit as the abstraction layer

Actually KWQ is no more.