This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Why Not Use Cocoa-Java Anymore?  RSS feed

 
Ranch Hand
Posts: 693
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!