• 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: Best beginner's book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best beginner's book


  • Subject: Re: Best beginner's book
  • From: James Duncan Davidson <email@hidden>
  • Date: Tue, 14 Jan 2003 11:13:57 -0800

On Tuesday, Jan 14, 2003, at 07:12 US/Pacific, Roarke Lynch wrote:

What does it take to compile a Cocoa-Java app so that it is cross-platform? I've never used Java before, but I'm sure I can plunk my way around this project I have as long as I can get it to run on both a wintel and mac system

Cocoa/Java apps are not cross platform. The main point of Cocoa/Java seems to be to allow people that know Java but don't want to pick up ObjC to program Cocoa apps. Sure, the Java code is portable and will run, but the NS*** classes aren't available on any other system so your GUI won't show. If you are going to do Cocoa/Java, you can structure your Model, View, and Controllers so that your Model is portable and can be used with Swing/AWT, etc.

But if you are going to do that, then you might just consider using Swing for your app. From an engineering standpoint, you'd have to make a pretty good argument for having two UI layers for your application in order to make it worth the effort.

At the end of the day, use what makes sense for your app. After programming in Java for 5 years I found that picking up ObjC for Cocoa apps wasn't too rough and really like that I can easily access odd Java functionality that I have via the bridge. And I still like Java for what it can do--though as far as I'm concerned, Java's raison d'etre is on the server side.
--
James Duncan Davidson
email@hidden
[life live];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Best beginner's book (From: Roarke Lynch <email@hidden>)

  • Prev by Date: RE: Apple and Cocoa (why don't they eat their own dog food?)
  • Next by Date: Re: Returning applescript results from Cocoa
  • Previous by thread: Re: Best beginner's book
  • Next by thread: Re: Best beginner's book
  • Index(es):
    • Date
    • Thread