Version: 1.1

Posted: 2008-03-10

Build Requirements: Xcode 2.4 or higher, Mac OS X 10.4 and later

Runtime Requirements: Mac OS X 10.4 and later

View Source Code:

Download Sample (“CarbonCocoaTempConverter.zip”, 30.5K)
Download Sample (“CarbonCocoaTempConverter.dmg”, 79.1K)



Description

"CarbonCocoaTempConverter" illustrates how to integrate Carbon and Cocoa user interfaces or windows in the same Cocoa application. Both windows are used to convert Fahrenheit values to Celsius.

This sample launches both Carbon and Cocoa windows. Enter a value in the Fahrenheit text field in either window, then click the "Convert" button to get and display a Celsius value.

Document Revision History

Date Notes
2008-03-10Updated to produce a universal binary. Added code and comments for clarification.
2003-12-18Demonstrates how to integrate Carbon and Cocoa user interfaces in the same Cocoa application.

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.