SlideShare une entreprise Scribd logo
1  sur  12
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. http://en.wikipedia.org/wiki/Cocoa_(API)
2. https://developer.apple.com/library/ios/docu
mentation/CoreFoundation/Conceptual/CFDe
signConcepts/Articles/tollFreeBridgedTypes.h
tml
3. https://developer.apple.com/library/mac/doc
umentation/cocoa/conceptual/memorymgmt/
MemoryMgmt.pdf
Thank You

Contenu connexe

En vedette (9)

Assignment 8:Narrative theory
Assignment 8:Narrative theoryAssignment 8:Narrative theory
Assignment 8:Narrative theory
 
미사교 1001 wordpress
미사교 1001 wordpress미사교 1001 wordpress
미사교 1001 wordpress
 
Project pao
Project paoProject pao
Project pao
 
Specimen processing structure and its insights
Specimen processing structure and its insightsSpecimen processing structure and its insights
Specimen processing structure and its insights
 
Communicating with technology.final
Communicating with technology.finalCommunicating with technology.final
Communicating with technology.final
 
Rbc
RbcRbc
Rbc
 
Send email attachments - share a link
Send email attachments - share a linkSend email attachments - share a link
Send email attachments - share a link
 
Docxpresso presentation Document Management
Docxpresso presentation Document ManagementDocxpresso presentation Document Management
Docxpresso presentation Document Management
 
Truth about hell
Truth about hellTruth about hell
Truth about hell
 

Similaire à Carbon vs cocoa

Building Papers
Building PapersBuilding Papers
Building Papers
Mahmoud
 
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
Daniel Krook
 
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open WideOCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware
 
Introduction to the wso2 carbon platform webinar
Introduction to the wso2 carbon platform   webinarIntroduction to the wso2 carbon platform   webinar
Introduction to the wso2 carbon platform webinar
WSO2
 
Introduction to the WSO2 Carbon Platform
Introduction to the WSO2 Carbon Platform  Introduction to the WSO2 Carbon Platform
Introduction to the WSO2 Carbon Platform
WSO2
 
Basic web application development with Apache Cocoon 2.1
Basic web application development with  Apache Cocoon 2.1Basic web application development with  Apache Cocoon 2.1
Basic web application development with Apache Cocoon 2.1
Jeroen Reijn
 

Similaire à Carbon vs cocoa (20)

Building Papers
Building PapersBuilding Papers
Building Papers
 
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
The Containers Ecosystem, the OpenStack Magnum Project, the Open Container In...
 
Containers, OCI, CNCF, Magnum, Kuryr, and You!
Containers, OCI, CNCF, Magnum, Kuryr, and You!Containers, OCI, CNCF, Magnum, Kuryr, and You!
Containers, OCI, CNCF, Magnum, Kuryr, and You!
 
mekentosj.com - building Papers
mekentosj.com - building Papersmekentosj.com - building Papers
mekentosj.com - building Papers
 
Ruby Meets Cocoa
Ruby Meets CocoaRuby Meets Cocoa
Ruby Meets Cocoa
 
EclipseCon 2016 - OCCIware : one Cloud API to rule them all
EclipseCon 2016 - OCCIware : one Cloud API to rule them allEclipseCon 2016 - OCCIware : one Cloud API to rule them all
EclipseCon 2016 - OCCIware : one Cloud API to rule them all
 
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open WideOCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
OCCIware Project at EclipseCon France 2016, by Marc Dutoo, Open Wide
 
Docker + App Container = ocp
Docker + App Container = ocpDocker + App Container = ocp
Docker + App Container = ocp
 
Manage your external libraries with CocoaPods
Manage your external libraries with CocoaPodsManage your external libraries with CocoaPods
Manage your external libraries with CocoaPods
 
IBM Keynote presentation, OW2con'19, June 12-13, 2019, Paris.
IBM Keynote presentation, OW2con'19, June 12-13, 2019, Paris.IBM Keynote presentation, OW2con'19, June 12-13, 2019, Paris.
IBM Keynote presentation, OW2con'19, June 12-13, 2019, Paris.
 
Introduction to the wso2 carbon platform webinar
Introduction to the wso2 carbon platform   webinarIntroduction to the wso2 carbon platform   webinar
Introduction to the wso2 carbon platform webinar
 
Introduction to the WSO2 Carbon Platform
Introduction to the WSO2 Carbon Platform  Introduction to the WSO2 Carbon Platform
Introduction to the WSO2 Carbon Platform
 
Continuous Integration with Cloud Foundry Concourse and Docker on OpenPOWER
Continuous Integration with Cloud Foundry Concourse and Docker on OpenPOWERContinuous Integration with Cloud Foundry Concourse and Docker on OpenPOWER
Continuous Integration with Cloud Foundry Concourse and Docker on OpenPOWER
 
Oops index
Oops indexOops index
Oops index
 
Basic web application development with Apache Cocoon 2.1
Basic web application development with  Apache Cocoon 2.1Basic web application development with  Apache Cocoon 2.1
Basic web application development with Apache Cocoon 2.1
 
The essence of the VivaCore code analysis library
The essence of the VivaCore code analysis libraryThe essence of the VivaCore code analysis library
The essence of the VivaCore code analysis library
 
Documentum Spring Data
Documentum Spring DataDocumentum Spring Data
Documentum Spring Data
 
Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...
Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...
Open Container Technologies and OpenStack - Sorting Through Kubernetes, the O...
 
C++ l 1
C++ l 1C++ l 1
C++ l 1
 
Between Cocoa and Cocoa Touch: A Comparative Introduction
Between Cocoa and Cocoa Touch: A Comparative IntroductionBetween Cocoa and Cocoa Touch: A Comparative Introduction
Between Cocoa and Cocoa Touch: A Comparative Introduction
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Dernier (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Carbon vs cocoa

  • 1. Carbon vs Cocoa Prepared By Kaushal S Malvi WiMC-13 131060753010
  • 2. Agenda • • • • • • Introduction of carbon Introduction of cocoa Carbon and Cocoa User Interface Communication Event Communication Between Carbon & Cocoa Main Difference of carbon & cocoa Reference
  • 3. 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.
  • 4. 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.
  • 5. Carbon and Cocoa User Interface Communication :
  • 6. Event Communication Between Carbon & Cocoa :
  • 7. 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
  • 8. 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.
  • 9. 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.
  • 10. Conclusion Through this discussion, got some information related with Cocoa Framework over the Carbon Framework which extends the functionality and give the rich features.
  • 11. References : 1. http://en.wikipedia.org/wiki/Cocoa_(API) 2. https://developer.apple.com/library/ios/docu mentation/CoreFoundation/Conceptual/CFDe signConcepts/Articles/tollFreeBridgedTypes.h tml 3. https://developer.apple.com/library/mac/doc umentation/cocoa/conceptual/memorymgmt/ MemoryMgmt.pdf