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.
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 mails | Author | Date |
|---|---|---|
| Susan G. Conger | Jan 9, 17:43 | |
| Susan G. Conger | Jan 9, 19:58 | |
| jeremy | Jan 9, 20:01 | |
| Joshua S Emmons | Jan 9, 20:23 | |
| Mike Benonis | Jan 10, 02:21 | |
| Jim Jaeger | Jan 10, 06:38 | |
| ryan | Jan 10, 08:29 | |
| Mark Grimes | Jan 10, 08:36 | |
| m | Jan 10, 08:40 | |
| Chris Ridd | Jan 10, 08:44 | |
| Chuck Toporek | Jan 10, 08:57 | |
| Stéphane Pinel | Jan 10, 10:01 | |
| Oliver Donald | Jan 10, 11:38 | |
| Alexander Lamb | Jan 10, 13:09 | |
| Jeffrey Drake | Jan 10, 14:24 | |
| Jeff LaMarche | Jan 10, 16:11 | |
| Alex Rice | Jan 10, 17:38 | |
| Phillip Mills | Jan 10, 21:15 | |
| James Duncan David… | Jan 11, 07:09 | |
| Bill Cheeseman | Jan 11, 13:00 | |
| Brian E. Howard | Jan 11, 15:02 | |
| Susan G. Conger | Jan 13, 00:05 | |
| Roarke Lynch | Jan 14, 16:12 | |
| James Duncan David… | Jan 14, 20:13 | |
| Mike Jackson | Jan 14, 21:43 |






Cocoa mail archive

