🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #833

Re: Cocoa - Java App using Codewarrior 8 ?

#833
From: Erick Kinnee
Date: Thu, 17 Apr 2003 02:55
51 lines
4283 bytes
In article <3ef5816a.0303101556.791b372b@posting.google.com>, Brian
Hannan <bhannan@mac.com> wrote:

> I too want to use CW for Cocoa Java development.  I have a bunch of
> existing code in Java but don't wish to proxy it in Objective-C or
> learn another SmallTalk variant.  Or use ProjectBuilder.  Essentially,
> I want to develop a non-Swing GUI for MacOS X to make it more MacOS X
> sexy.
> 
> So I played around with ProjectBuilder to see what I could get. 
> Basically, I can develop and build in CodeWarrior, but use
> ProjectBuilder to package and debug the Coca side.
> 
> Here's an overview of what I got to work.  All this assumes CW Pro
> 8.3, ProjectBuilder 2.1 December 2002 Dev Tools, MacOS 10.2.3 and JDK
> 1.4 Preview Release 10.
> 
> What I do is develop in CodeWarrior and include the classes in
> /System/Library/Java in my CW project (but prevent those classes from
> being merged into the target JAR I build).
> 
> In ProjectBuilder, I make a Cocoa Java project, remove all Java code
> and import my CW produced JAR into the project.  Then I added an extra
> build phase to to copy the JAR I produced with CW into the Java
> resources, and remove the JAR produced by ProjectBuilder.
> 
> That works for me.  I develop and build in CW.   When I want to bundle
> the MacOS X app I build in Project Builder.  If I point Project
> Builder at my source files dir, I can also debug the Coca app as well
> from Project Builder.  I'm sure there's a way to get the debug side to
> work from CW, just using a Pure Java solution and calling
> NSApplication correctly, but I didn't figure that out yet.
> 
> Actually, you could skip Project Builder.  Essentially it produces a
> small binary from the Objective-C stub in the main.m you'll see in
> your Cocoa Java project.  I can take this produced binary from one
> MacOS X app package and use it with another jar and set of resoruces I
> produce.  So it shouldn't be hard to write a Perl or Shell script to
> do the packaging without ProjectBuilder, and have that script called
> from CodeWarrior.
> 
> Anyways, hope this helps.  If you think this is all too confusing then
> perhaps use ProjectBuilder.  However, once you set this all up, it's
> easy to do for any number of Java Cocoa apps you have, and easy to
> run.  And if you really love the CW dev tools like I do, then being to
> use those alone will save you time over using ProjectBuilder.
> 
> Cheers.

Jar Bundler from the Dec deb tools package is what I use to take the CW
generated jar and pop out a .app package. Check it out.
Technical Details
Message-ID: <160420032155554604%erick_kinnee@charter.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <G2v7a.79307$P1.5213726@news1.east.cox.net> <mwron-2A1C36.10290528022003@enews.newsguy.com> <FMN8a.105075$P1.6643673@news1.east.cox.net> <spam-0B3424.13125410032003@news.mtwk.sps.mot.com> <3ef5816a.0303101556.791b372b@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,2e46eb92449dcfb4
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,1c283d435cf969e1
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-04-16 19:55:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 16 Apr 2003 21:55:56 -0500
Subject: Re: Cocoa - Java App using Codewarrior 8 ?
Date: Wed, 16 Apr 2003 21:55:55 -0500
From: Erick Kinnee <erick_kinnee@charter.net>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Message-ID: <160420032155554604%erick_kinnee@charter.net>
References: <G2v7a.79307$P1.5213726@news1.east.cox.net> <mwron-2A1C36.10290528022003@enews.newsguy.com> <FMN8a.105075$P1.6643673@news1.east.cox.net> <spam-0B3424.13125410032003@news.mtwk.sps.mot.com> <3ef5816a.0303101556.791b372b@posting.google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
User-Agent: Thoth/1.6.0 (Carbon/OS X)
Lines: 51
X-Trace: sv3-eCNIkIkobRSEca/RrOoI4ba111JfqZJsLMAE9Ex5HsXltM3EysCU4at/fOTWP6TWWPXDGRGmM7gpUcO!npH8yKki0Lxfg155a+pM0lMHR5mgkPqCVO44YfcJiYZbzIjXHo0pTbqeLU/0bT2xXZYcP79W
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1