Carbon vs cocoa

57 %
43 %
Information about Carbon vs cocoa

Published on March 8, 2014

Author: malvikushal



This slide presentation will show you the basic difference betwwen Carbon and cocoa.

Carbon vs Cocoa Prepared By Kaushal S Malvi WiMC-13 131060753010

Agenda • • • • • • Introduction of carbon Introduction of cocoa Carbon and Cocoa User Interface Communication Event Communication Between Carbon & Cocoa Main Difference of carbon & cocoa Reference

What is Carbon : • Carbon is one of Apple Inc.'s C-based application programming interfaces (APIs) for the Macintosh operating system. • Carbon provides a good degree of backward compatibility for programs that ran on the now-obsolete Mac OS 8 and 9. • Developers could use the Carbon APIs to port their "classic" Mac software to the Mac OS X platform with far less effort than a port to the entirely different Cocoa system which originated in OpenStep.

What is Cocoa : • Cocoa is Apple's native object-oriented application programming interface (API) for the OS X operating system. • For iOS, there is a similar API called Cocoa Touch which includes gesture recognition, animation, and a different user interface library, and is for applications for the iOS operating system, used on Apple devices such as the iPhone, the iPod Touch, and the iPad.

Carbon and Cocoa User Interface Communication :

Event Communication Between Carbon & Cocoa :

Managing Core Foundation Objects • Use similar memory allocation conventions ▫ Allocate , retain, release objects • NSObject Class – reference counting schema for memory managemnet • Newelly allocate object ▫ ▫ ▫ ▫ Created with alloc & copy – with retain count 1 Retain message – increment by one Release message – decrement by one Reaches zero – deallocated by a procedure

Main Difference of carbon & cocoa • Cocoa has an Objective-C API, and can be accessed from C and C++ code easily. Carbon is a pure-C API. • Carbon had pre-Mac OS X applications. Cocoa has evolved from the Next-Step framework that Apple acquired and used as the basis to create Mac OS X. It's the "native" API for Mac OS X and the only way to access some of the newest capabilities.

Continue…. • One way to check if an application is carbon or not is to open the package contents of the application ,if inside the 'Contents' folder of the package there is a folder called 'MacOSClassic' and one called 'MacOS', then it is a Carbon application.

Conclusion Through this discussion, got some information related with Cocoa Framework over the Carbon Framework which extends the functionality and give the rich features.

References : 1. 2. mentation/CoreFoundation/Conceptual/CFDe signConcepts/Articles/tollFreeBridgedTypes.h tml 3. umentation/cocoa/conceptual/memorymgmt/ MemoryMgmt.pdf

Thank You

Add a comment

Related presentations

Related pages

Cocoa Vs. Carbon? - O'Reilly Media

Cocoa Vs. Carbon? by James Duncan Davidson 05/23/2001 With Mac OS X, there are a number of frameworks that can access the functionality of the system.
Read more

objective c - difference between carbon and cocoa? - Stack ...

What is the difference between carbon and cocoa ? For what type of applications we should use carbon and for what type of applications we should use cocoa ?
Read more

osx - Which is better? Carbon or Cocoa? (Mac ... - Stack ...

Which is better? Carbon or Cocoa? (Mac) up vote 1 down vote favorite. Which is better for programming? ... Speaking in combat as character vs. Discussing ...
Read more

Road to Mac OS X: Carbon versus Cocoa | Macworld

Road to Mac OS X: Carbon versus Cocoa. Comments. By Dennis Sellers, PCWorld. Jan 4, ... we're going to look at the differences of Carbon and Cocoa.
Read more

Cocoa Vs. Carbon - O'Reilly Media

Article: Cocoa Vs. Carbon? Subject: Cocoa Vs. Carbon: Date: 2001-05-23 12:00:41: From: duncan Response to: Cocoa Vs. Carbon: When looking at the actual ...
Read more

Carbon vs Cocoa -

La differenza fra le due API di Mac OS X. Carbon vs Cocoa di Luca Torella. Livello: Base. Introduzione Da quando Mac OS X è stato annunciato, notizie di ...
Read more

Cocoa vs. Carbon??? | Mac Support

Let me redefine my question a little. What is the future of Carbon? As I understand, it was designed to be a step inbetween Classic APIs and Cocoa APIs?
Read more

Carbon (Apple) – Wikipedia

Carbon ist eine Sammlung von Programmierschnittstellen (APIs) von Apple, die Teile des unter der Macintosh System Software enthaltenen Macintosh-Baukasten ...
Read more

Carbon vs. Cocoa | speed differences - Mac OS X ...

Would the same application written for cocoa be faster than one for carbon? I was under the impression there wouldn't be that much of a speed difference . . .
Read more