Thread: Learning C++
View Single Post
  #5  
Old April 23rd, 2008, 09:37 PM
Mikuro's Avatar
Mikuro Mikuro is online now
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,448
Thanks: 2
Thanked 5 Times in 5 Posts
Mikuro is on a distinguished road
You can't use Cocoa from C++, actually. C++ apps generally use Carbon, which is widely considered less modern and "Mac-like" than Cocoa, and which Apple seems to only reluctantly support (IMHO).

wxWidgets uses C++ (and many other languages), and has the advantage of being cross-platform. But again, it is not as "Mac-like" as Cocoa.

Cocoa and Objective-C usually go hand in hand. There are Cocoa bridges for other languages (Leopard includes bridges for Python and Ruby, and Java was supported in the past), but Objective-C is the main language.

You can integrate Objective-C and C++ code. Sometimes I use C++ to do some of the core computational tasks of my applications and Objective-C/Cocoa to handle everything else, like the interface. There are some other threads here on that topic.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.2

I'm now a four-browser man. How on earth did this happen?!

Useful programs: PithHelmet, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote