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?

Carbon?
Thread Tools
Mac Elite
Join Date: Nov 2005
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Dec 4, 2006, 11:45 AM
 
I'm a college sophomore interested in a future in programming, specifically for OS X. Over the past few months I've been learning Cocoa as quickly as possible, and I must say that I enjoy it a lot. Both it and the Objective-C language are very elegant and a pleasure to implement. However, I've been wondering recently if Cocoa will be enough for a Mac developer, of if I should go out and learn Carbon as well. I know that Carbon is older and fading in popularity, but that doesn't necessarily mean that I shouldn't be familiar with it.

I also ask this because I'm interested in a summer internship, and one of the places I'm interested in suggests a knowledge of both Cocoa and Carbon. Will I see this a lot in the work force?

Any ramblings are entirely my own, and do not represent those of my employers, coworkers, friends, or species
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 4, 2006, 12:45 PM
 
Carbon includes a lot of stuff that Cocoa doesn't. It's definitely useful to be familiar with it.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Dec 4, 2006, 02:33 PM
 
In particular the FS* (filesystem operations), LS* (launch services), and CFPreferences APIs are ones that I have found useful.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 4, 2006, 02:41 PM
 
Carbon is also the only way you can customize a menu, as far as I know. (Hopefully Apple will resurrect NSMenuView for Leopard, but I'm not holding my breath.)
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Sep 2005
Location: Los Angeles, California
Status: Offline
Reply With Quote
Dec 5, 2006, 02:39 AM
 
Carbon, AFAIK is not fading in popularity, and, as is often thought, in support. It's simply an API that is much better suited for developing cross-platform applications.

I'm pretty sure that's the case.
Linkinus is king.
     
Mac Elite
Join Date: Nov 2005
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
Dec 5, 2006, 04:46 PM
 
Blegh, okay. I guess I'll start picking up some Carbon once I get a better grip on Cocoa. Does anyone have any suggestions as to how I can best go about doing this? A quick Amazon book search revealed very few Carbon books, all of which had received abysmal ratings.

Any ramblings are entirely my own, and do not represent those of my employers, coworkers, friends, or species
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 5, 2006, 05:18 PM
 
Just look at the documentation and code samples. That's the best I can think of. Carbon is a gigantic beast comprising several large frameworks, so don't think of it as just something that you'll learn. Take it a little bit at a time.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: Jan 2006
Status: Offline
Reply With Quote
Dec 5, 2006, 10:36 PM
 
I wish i had the time to learn how to program at least in ONE language aside from HTML in my lifetime. It looks as if I wanted any kind of software with all the modern features available in OS 9, then I'd have to do it myself.

I mean, it'd be great to have at least the following available in Carbonized form for OS 8.6/9.x users:
  • a decent BitTorrent client
  • a back-port of Firefox
  • or at least a faster and more compatible browser than iCab (which is the best so far)

Don't bully me, I got an Uzi... HOO-HAH!
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 6, 2006, 02:48 AM
 
There isn't a whole lot of money in the unwilling-to-upgrade-after-six-years market, and geeks and hobbyists all enjoy OS X programming much more, so OS 9 isn't really in a good place as far as software development goes.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Dec 7, 2006, 04:49 AM
 
The only reason to even look at Carbon code for modern OS X applications is when you need functionality that isn't available through Cocoa. So there's no need to even know it exists unless you can't accomplish what you want with Cocoa. From what I've seen, filesystem operations and registering system hot keys are the two big areas you'd need to use Carbon for. Other than that, stay far, far away.
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Dec 7, 2006, 09:39 AM
 
Originally Posted by Chuckit View Post
Carbon is also the only way you can customize a menu, as far as I know. (Hopefully Apple will resurrect NSMenuView for Leopard, but I'm not holding my breath.)
Customize a menu? What do you mean?

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
Mac Elite
Join Date: Aug 2001
Status: Offline
Reply With Quote
Dec 7, 2006, 10:18 AM
 
Originally Posted by Big Mac View Post
Customize a menu? What do you mean?
Put custom views in a menu item (see, for example, the Finder's color label menu item)
     
Mac Elite
Join Date: Mar 2001
Location: England
Status: Offline
Reply With Quote
Dec 7, 2006, 10:32 AM
 
You may be pleasantly surprised
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 7, 2006, 10:51 AM
 
Originally Posted by Big Mac View Post
Customize a menu? What do you mean?
Like the volume menu, or the Spotlight menu, or the color labels in the Finder's File menu.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Dedicated MacNNer
Join Date: Apr 2004
Status: Offline
Reply With Quote
Dec 9, 2006, 08:57 AM
 
so, um... what are they using to draw the menus if its not an NSMenuView? couldn't one just subclass that, and then use posing to jump in on the action?
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 9, 2006, 11:55 AM
 
As I said, the Carbon Menu Manager is used for menus. NSMenuView is deprecated and not used for anything.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
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:42 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