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.
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.
This document discusses issues that arise when writing Java applications with Cocoa, which is implemented in Objective-C.
Important: Features added to Cocoa in Mac OS X versions later than 10.4 will not be added to the Cocoa-Java programming interface. Therefore, you should develop Cocoa applications using Objective-C to take advantage of existing and upcoming Cocoa features.
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.
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-10-03)