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 > Carbon or Cocoa?

Carbon or Cocoa?
Thread Tools
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Apr 11, 2001, 01:15 AM
 
Hi there

I read a lot about the differences between Carbon and Cocoa, but there are big differences in opinions. So I would like to know what is really true:
1) Is one of the API's faster than the other?
2) Is one of them "better" than the other or is each suited for a specific purpose?
3) Is it possible that Carbon will become unsupported in the future?

And something else, concerning my current (OS 9) project:
4) Which one is better for integrating low-level, assembly routines?

Thanks to everybody who answers.
     
Senior User
Join Date: Feb 2001
Location: Rochester, uk
Status: Offline
Reply With Quote
Apr 11, 2001, 05:00 AM
 
[double post, sorry]

[This message has been edited by sadie (edited 04-11-2001).]
All words are lies. Including these ones.
     
Senior User
Join Date: Feb 2001
Location: Rochester, uk
Status: Offline
Reply With Quote
Apr 11, 2001, 05:01 AM
 
I haven't really used Cocoa, but here's my understanding:

Originally posted by danengel:
1) Is one of the API's faster than the other?
In theory, no - in practise, Cocoa apps tend to run a lot quicker because more of your work has already been done more efficiently in the libraries. If you started writing your own hashtables, you'd be a long time at it to make them any good. Use Cocoa, and they're provided (i think).

2) Is one of them "better" than the other or is each suited for a specific purpose?
Specific purpose. Carbon is particularly useful if you have existing code, particularly in C++, that would need to be part of the new App. It's also better if you want to port the program to another platform afterwards.

Cocoa is better if you have a clean slate to write a new program.

3) Is it possible that Carbon will become unsupported in the future?
Unlikely, at least this decade. Classic may go in a year or two, but considering the next Office is Carbon and won't come out until October (ie, March) they can't deprecate it any time soon.

And something else, concerning my current (OS 9) project:
4) Which one is better for integrating low-level, assembly routines?
either of them can use plain old C, which is what you'd best use. It makes no difference.

All words are lies. Including these ones.
     
Mac Enthusiast
Join Date: Oct 2000
Status: Offline
Reply With Quote
Apr 11, 2001, 06:10 AM
 
Thanks!
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Apr 11, 2001, 09:56 AM
 
Couldn't have said it better myself, sadie :-)
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
   
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 03:02 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