Important: The Cocoa-Java API is deprecated in Mac OS X version 10.4 and later. You should use the Objective-C API instead; this API is documented in Application Kit Framework Reference and Foundation Framework Reference.
Introduction to Cocoa-Java Integration Guide
This document discusses issues that arise when writing Java applications with Cocoa, which is implemented in Objective-C.
Organization of This Document
Here are the concepts covered:
“Method Selectors” discusses how Java can make use of Cocoa’s target-action paradigm using the NSSelector class.
“Java Memory Management” discusses how Java sometimes has to take Objective-C’s memory management into account when using Cocoa.
Here are the tasks covered:
“Using NSSelector” describes how you use the Java-only class NSSelector to implement target-action behavior.