
74 9 Chapter 4: The Languages of Mac OS X: Java
The Java Bridge
Bridge
Performance
Issues
Finding Java
Headers
Cocoa is written in Objective-C. A mechanism called the Java
bridge exists to let you call Objective-C code from Java (and
vice versa). The bridge is so effective that you may not really
notice it at all: You can write your Cocoa code, calling appar-
ently Java classes and methods, without being aware of the
bridge in most cases.
There are two situations in which you do need to be aware of
the bridge. In the first, you should realize that, yes, there is a
slight effect on performance when using the Java bridge. This
does not mean ...