Version: 1.0

Posted: 2007-05-31

Build Requirements: Mac OS X 10.5, Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“”, 26.5K)
Download Sample (“CrossEvents.dmg”, 81.0K)


"CrossEvents" is a Carbon-Cocoa hybrid application that demonstrates how to send Carbon Events and NSNofitications between Carbon and Cocoa portions of code. In particular a custom Carbon Event is created and sent from a window handler to an Objective-C controller object. In the opposite way an NSNotification is sent from NSTextField delegate method to a notification listener object on the Carbon side. In using this technique this sample shows how you can change content between Carbon's HITextView and Cocoa's NSTextField, all within the same Carbon window.

Document Revision History

Date Notes
2007-05-31Demonstrates how to send CarbonEvents and NSNotifications between Carbon and Cocoa.

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.