Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Is it possible to write graphical C++ apps on MAC OS X

Is it possible to write graphical C++ apps on MAC OS X
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Aug 30, 2003, 09:40 AM
 
I want to write C++ apps with a GUI but don't want to resort to TrollTech. Is this possible?
     
Forum Regular
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Aug 30, 2003, 11:07 AM
 
I was under the impression that you could do it with the Carbon libraries, or have a thing GUI wrapper in Objective-C++ or something.. but I'm not 100% sure. I tend to avoid C++.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 30, 2003, 12:25 PM
 
Originally posted by mustafa:
I want to write C++ apps with a GUI but don't want to resort to TrollTech. Is this possible?
Sure. To my knowledge, most of the major GUI apps (e.g. Photoshop) are written in C++. Just use Carbon.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
mustafa  (op)
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Aug 30, 2003, 12:38 PM
 
whats the difference between obj-c and carbon??
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Aug 30, 2003, 01:09 PM
 
Originally posted by mustafa:
whats the difference between obj-c and carbon??
Objective-C is a programming language (that works with the Cocoa API). Carbon is an API (that works with the C++ language).
     
mustafa  (op)
Fresh-Faced Recruit
Join Date: Jul 2003
Status: Offline
Reply With Quote
Aug 30, 2003, 02:03 PM
 
What disadvantages are there of using carbon vs obj-c? Compatibilty? speed?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 30, 2003, 05:07 PM
 
You are confused.

Carbon is an API. It provides interfaces in C.
Cococa is an API. It provides interfaces in Obj-C.

Cocoa is generally a higher level framework than Carbon, meaning you get more functionality for free, meaning more rapid application development.

There are also 3rd party C++ frameworks, such as Qt and PowerPlant, which build on Carbon.

There is a wealth of information on this subject, do a fscking search.
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Aug 31, 2003, 09:49 PM
 
Originally posted by mustafa:
What disadvantages are there of using carbon vs obj-c? Compatibilty? speed?
OK. It's Carbon vs. Cocoa, and C++ vs. Objective-C.

Pros of objective-c (as opposed to C++):
introspection
protocols
dynamic typing
class posing
reference counting instead of manual memory management

Cons:
slower
no multiple inheritance (some people would say this is not a problem though)
no static member variables (at least, I can't figure out how to do them)
probably a few other things

Pros of Cocoa (as opposed to carbon):
Easy
Fast development time
Fun
Lots of functionality

Cons:
Some of the low level filesystem stuff is carbon only
Cocoa is perhaps a little slower
Cocoa only runs on OSX. Carbon runs on 8.1 through X


Both Carbon and Cocoa only run on Macs. If you want a cross platform app, find a cross platform API.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2