• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does anybody program in Java?!?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does anybody program in Java?!?!


  • Subject: Re: Does anybody program in Java?!?!
  • From: Manfred Schwind <email@hidden>
  • Date: Thu, 14 Oct 2004 10:14:25 +0200

To echo Alex here, there is a doc here titled "Don't Write Cocoa Applications with Java" that gives you the cons of using java-cocoa. There are some apps that use java-cocoa, I believe that Cyberduck uses it, and Acquisition does.

http://www.bignerdranch.com/Resources/Java.html

I don't agree with this article in general. It depends so much on the type of application you are developing. I am working on a (not yet released) bigger project that has to be cross platform. I chose Java for the Model, and on Mac OS X it has a Cocoa GUI, also written entirely in Java, and it is working great! On other platforms, Swing is used. The Mac version looks way better because of using Drawers and Sheets. ;-)
It's true that some issues about Java-Cocoa are not documented very well, but once you know them, it's no problem.
I love the advantages of all the great Java classes and the garbage collector.

Maybe if you develop a Mac OS X only application or an application that makes much use of Mac OS X specific things like CD burning, the Address Book API, the Keychain etc. etc. Objective-C is the better choice. But you can not say it in general.

Yes, I also love Objective-C, it's a "much more" OO language than Java, but both languages have pros and cons, and it really depends on the type of application you want to develop.

Ah, and I first tried it with Java in the Model and Objective-C for the Mac OS X GUI (Controller+View). But then I realized that calling Java from Obj-C is easy, but the reverse, calling Obj-C from Java, is very complicated. So I switched to Java for the Cocoa GUI also and it works very well for my application.

Bye,
Mani

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Does anybody program in Java?!?! (From: Stephen Vogelpohl <email@hidden>)
 >Re: Does anybody program in Java?!?! (From: "Alexander F. Hartner" <email@hidden>)
 >Re: Does anybody program in Java?!?! (From: Christopher Forsythe <email@hidden>)

  • Prev by Date: ScrollView thumbnail custom view
  • Next by Date: Re: Associating a file extension with an app
  • Previous by thread: Re: Does anybody program in Java?!?!
  • Next by thread: Re: Does anybody program in Java?!?!
  • Index(es):
    • Date
    • Thread