Carbon ? cocoa?

jeno

Registered
hello,

How do i tell which application is carbon? and which is cocoa?
Can i identified them just my looking and playing with them?

Thanks
 
I don't know if all the "hints" that worked early on still work. If a non-saved window shows a little black dot in the close-widget, it usually was a Cocoa application. Plus services didn't work for Carbon apps. I guess Apple's fixed both of these issues - if it ever was a restriction regarding Cocoa/Carbon? But you could also just ask about a specific app. Someone might know.
 
known carbon apps like the finder and iTunes don't respect the dock. this is to say, you can extend a window down beyond the top of the dock, and it will stay there. try this with iphoto or garageband, both are Cocoa apps. you physically can't resize the window below the top of the dock. you can do this with safari, which is cocoa, but as soon as you move the window, it will resize itself to the top of the dock.

also, things like right-clicking on a word in a text field (a web page, or text edit, or a pdf or similar, doesn't have to be editable) will throw up options for Google and Spotlight in cocoa (although i'm not sure if this sometimes works in carbon), and if the word is misspelled, it will offer dictionary alternatives, which carbon won't.
 
If you're using Silk you can just drag an app into Silk's pref pane and it will tell you if it's carbon or cocoa.
 
Most of the differences mentioned here (services support, Dock awareness, etc.) are not actually inherent to Carbon. It's just that in Cocoa, developers get these things "for free", whereas in Carbon, they take extra work to implement. Because of this, many Carbon apps don't respect the Dock, but there are other Carbon apps that do. In fact, I just tested it, and it seems like Finder finally respects the Dock in Tiger, at least in regard to resizing windows.

Many apps these days are hybrids. iTunes, for example, uses Carbon for most of its interface, but uses Cocoa for other things (not sure what, but I'd guess XML parsing, at least). A lot of other apps take the opposite approach, using Cocoa for the interface and Carbon for some more nitty-gritty tasks.
 
yes, it is. i think it's more a credit to how good carbon is: it's a way of building apps that's 20 years old in its roots, and apple have modernised it to the point where the line between carbon and its ultramodern cousin Cocoa is very much blurred.
 
how about "Carbon-Cocoa Integrated" software? ( i found this on Apple website) how can we identified them?

Actually my intension is on "Unicode"
I found this on the Apple website as well:

"The ability of applications to use OS X's Unicode support varies widely. Cocoa programs like TextEdit are normally "Unicode-savvy": They can accept Unicode input via keyboard or copy/paste, and save and open Unicode text. Carbon programs are usually only "Unicode-aware" and lack key features. For example, Word X does not accept direct Unicode input, but it can save text as UTF-16 and HTML as UTF-8 (although it can only open the latter). Some Carbon programs, including AppleWorks, and almost all Classic programs, are "Unicode-deaf" and can neither input, save, nor open Unicode text"
 
I am working with lot of text in more than 20 languages where i encounter some languages and text are appear in unicode. Some character and accents not showing correctly when working in Adobe Illustrator CS & CS2 even if i have the correct font installed. Basically, those 20 languages of text are coming in from 3th party in Microsoft word document. I will transfer those text into Adobe Illustrator using copy & paste.

I wrote an email to Apple yesterday, they replay me with some introduction to ATSUI & MLTE which seem like part of the OS X system. And some introduction to Carbon, Cocoa, Carbon-Cocoa Integrated as well. I had some idea of what Carbon, Cocoa, Carbon-Cocoa Integrated is. But that does not answer my question when we discuss about identification that we talk about early (Carbon doest not respect the dock. etc)

Link that i received from Apple:

Introduction to Supporting Unicode Input
http://developer.apple.com/document...code_Input/sui_intro/chapter_1_section_1.html

Introduction to Rendering Unicode Text With ATSUI
http://developer.apple.com/document...pts/index.html#//apple_ref/doc/uid/TP30000984

MLTE Introduction
http://developer.apple.com/document...LTE/index.html#//apple_ref/doc/uid/TP30000983

Guidelines for Internationalization
http://developer.apple.com/document...ational/Articles/InternationalGuidelines.html

Carbon
http://developer.apple.com/carbon/

Cocoa pertains to Mac OS X platform. For more information, please visit the following website:

Cocoa
http://developer.apple.com/carbon/

Introduction to Carbon-Cocoa Integration Guide
http://developer.apple.com/documentation/Cocoa/Conceptual/CarbonCocoaDoc/CarbonCocoaDoc.html
 
Back
Top