Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Larod

macrumors newbie
Original poster
Aug 29, 2010
3
0
Puerto Rico
Hello!

I'm a Computer Engineer student, I have programmed a couple of Cocoa programs using xcode, some java stuff, etc. I'm currently working on several programs for my classes and they need to be written on C++, yes I know... I have installed all the Developer tools for mac but I think I have seen a Carbon app option before and in the current version of Xcode that option is no longer available. I have looked on the Mac Developer site but I don't seem to find a link or anything so that I can add that functionality to my Xcode installation. Any pointer will be greatly appreciated. By the way anyone out there using Qt? Is it worth it? Or you guys prefer to stick with Carbon for C++ programs for Mac?
 
If you're writing C++ programs for school, you can probably get away with using the C++ command-line tool project template that ships with Xcode 3.2. You would need Carbon only if you were writing a Mac GUI program in C++. I can't imagine a college C++ course using or requiring Carbon.

But if you need the Carbon project templates, you're going to have to do some more work. Xcode 3.2 removed the Carbon application templates. To access the Carbon application templates you must install either Xcode 3.0 or 3.1. You can install an older version of Xcode alongside 3.2. If you have Leopard, install Xcode from your Leopard install disc. Otherwise you'll have to download Xcode from the ADC site. Read this article for detailed instructions on downloading older versions of Xcode.
 
Hello!

I'm a Computer Engineer student, I have programmed a couple of Cocoa programs using xcode, some java stuff, etc. I'm currently working on several programs for my classes and they need to be written on C++, yes I know... I have installed all the Developer tools for mac but I think I have seen a Carbon app option before and in the current version of Xcode that option is no longer available. I have looked on the Mac Developer site but I don't seem to find a link or anything so that I can add that functionality to my Xcode installation. Any pointer will be greatly appreciated. By the way anyone out there using Qt? Is it worth it? Or you guys prefer to stick with Carbon for C++ programs for Mac?

Use Cocoa + Objective C++. A source file ending in .mm is Objective-C++, just like .m is Objective-C, and is fully compatible with C++.
 
If you're writing C++ programs for school, you can probably get away with using the C++ command-line tool project template that ships with Xcode 3.2. You would need Carbon only if you were writing a Mac GUI program in C++. I can't imagine a college C++ course using or requiring Carbon.

But if you need the Carbon project templates, you're going to have to do some more work. Xcode 3.2 removed the Carbon application templates. To access the Carbon application templates you must install either Xcode 3.0 or 3.1. You can install an older version of Xcode alongside 3.2. If you have Leopard, install Xcode from your Leopard install disc. Otherwise you'll have to download Xcode from the ADC site. Read this article for detailed instructions on downloading older versions of Xcode.

Yes, it is not required, I just wanted to add some GUI's to them, just to play a bit with my code. Thanks for the info!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.