Skip navigation.
 
mlRe: Best beginner's book
FROM : James Duncan Davidson
DATE : Tue Jan 14 20:13:57 2003

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_removed>
[life live];
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlBest beginner's book Susan G. Conger Jan 9, 17:43
mlBest beginner's book Susan G. Conger Jan 9, 19:58
mlRE: Best beginner's book jeremy Jan 9, 20:01
mlRe: Best beginner's book Joshua S Emmons Jan 9, 20:23
mlRe: Best beginner's book Mike Benonis Jan 10, 02:21
mlRe: Best beginner's book Jim Jaeger Jan 10, 06:38
mlRe: Best beginner's book ryan Jan 10, 08:29
mlRe: Best beginner's book Mark Grimes Jan 10, 08:36
mlRe: Best beginner's book m Jan 10, 08:40
mlRe: Best beginner's book Chris Ridd Jan 10, 08:44
mlRe: Best beginner's book Chuck Toporek Jan 10, 08:57
mlRe: Best beginner's book Stéphane Pinel Jan 10, 10:01
mlRE: Best beginner's book Oliver Donald Jan 10, 11:38
mlRe: Best beginner's book Alexander Lamb Jan 10, 13:09
mlRe: Best beginner's book Jeffrey Drake Jan 10, 14:24
mlRe: Best beginner's book Jeff LaMarche Jan 10, 16:11
mlRe: Best beginner's book Alex Rice Jan 10, 17:38
mlRe: Best beginner's book Phillip Mills Jan 10, 21:15
mlRe: Best beginner's book James Duncan David… Jan 11, 07:09
mlRe: Best beginner's book Bill Cheeseman Jan 11, 13:00
mlRe: Best beginner's book Brian E. Howard Jan 11, 15:02
mlRe: Best beginner's book Susan G. Conger Jan 13, 00:05
mlRe: Best beginner's book Roarke Lynch Jan 14, 16:12
mlRe: Best beginner's book James Duncan David… Jan 14, 20:13
mlRe: Best beginner's book Mike Jackson Jan 14, 21:43