Introduction to Carbon-Cocoa Integration Guide

No matter which development environment you choose for developing applications—Cocoa or Carbon—you may find that the other development environment offers functionality you’d like to use in your application. Choosing the Cocoa or Carbon development environment to create new applications doesn’t restrict you to using the API defined for that environment. You can use the Carbon API from a Cocoa application or the Cocoa API from a Carbon application. This document shows you how.

There are a number of reasons you might want to integrate Cocoa and Carbon in an application, including the following:

Who Should Read This Document?

This document assumes you are programming for Cocoa in Objective-C and does not discuss Java integration issues. To get the full benefit of this document, you should have experience programming in either the Cocoa or Carbon environment and you should also have some basic knowledge of the other environment. The See Also section contains a list of documents to help you gain this knowledge.

Organization of This Document

You should be familiar with a few fundamental concepts before you begin to integrate Cocoa and Carbon in the same application. These concepts are covered in the following articles:

The concepts discussed in the preceding articles are put into practice in the sample code provided in these articles:

See Also

For additional information on developing for Mac OS X, especially in Cocoa and Carbon, see the following documents: