Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Mac OS and the fly likes Why Not Use Cocoa-Java Anymore? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Mac OS
Reply Bookmark "Why Not Use Cocoa-Java Anymore?" Watch "Why Not Use Cocoa-Java Anymore?" New topic
Author

Why Not Use Cocoa-Java Anymore?

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 679

I was all set to use Apple's Cocoa Framework, using Java as my programming language for an app that I'm just starting. A friend pointed out that Cocoa-Java has been deprecated.

see link at:

http://developer.apple.com/Documentation/Cocoa/Conceptual/LanguageIntegration/index.html#//apple_ref/doc/uid/10000112i

According to Apple, I should switch from Java to Objective-C if I want to use the Cocoa Framework.

Accorind to me, I'd rather start with a more 100% java app and put some Mac features in, using JNI. I want to move away from dependence on Cocoa which is proprietary and move to something that is cross-platform, such as Swing, and add some features to make my app somewhat Mac-like.

I really don't want to give up on Java now that I know it somewhat and start over with Objective-C which is more proprietary.

Comments are welcome.

Kaydell
[ April 12, 2007: Message edited by: Kaydell Leavitt ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
There are a number of ways of making a Java desktop application behave more Mac-like, and making use of some OS X capabilities that normally are out of reach of Java. The MacOsxFaq contains a number of links to resources in this area. In particular, check out OSXAdapter, and Greg Guerins software if you want to go down the route of using JNI.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why Not Use Cocoa-Java Anymore?
 
Similar Threads
JMenuBars on Mac OS
newbie asks: where to start and is there any java framework for iphone?
Menu bars on a Mac
accessing a J2ee web application on iphone
What are Delegates?