Version: 1.3

Posted: 2007-02-05

Build Requirements: Xcode 2.4.1

Runtime Requirements: Mac OS X 10.2 and later

View Source Code:

Download Sample (“Cocoa_With_Carbon_or_CPP.zip”, 60.0K)
Download Sample (“Cocoa_With_Carbon_or_CPP.dmg”, 111.2K)



Description

Cocoa_With_Carbon_or_C++ is sample code that shows how to call Carbon routines and C++ code from within an Objective-C Cocoa program. The sample displays a window within which, depending upon the radio button selected, clicking the "Say Hello to the World" button will call functions that use Objective-C, C++, or Carbon respectively. Version 1.0: Initial version Version 1.1: Updated the sample to include use of the Objective-C++ compiler on files that end in .mm, and fleshed out the ReadMe to explain things a bit better Version 1.2: fixed a compile error on Project Builder 2.0.1/gcc3 Requirements: Project Builder 2.0.1 or higher (downgrading allowed), Mac OS X Keywords: cocoa cocoa_with_carbon_or_c++ c++ objective-c objective-c++ objc++.

Document Revision History

Date Notes
2007-02-05Upgraded to Xcode 2.4.1, includes Universal Binary, upgraded from .rsrc to .nib
2003-01-14Shows how to call Carbon routines and C++ code from within an Objective-C Cocoa program.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.