Andrew Thompson said:
::...
:| If you still find you can use a plist file, I can *try* to put
ne
:| together, but I've never used the Xcode environment and can't
:testify
:| that it'll be usable.
:
uh... this is usenet Steve, if it does not
:work I'll 'ask for my money back'. ;-)
:
:And yes, I would appreciate if you could
:do that for me. I'd like to give it a try.
:
:--
:Andrew Thompson
:*
http://www.PhySci.org/ PhySci software suite
:*
http://www.1point1C.org/ 1.1C - Superluminal!
:*
http://www.AThompson.info/andrew/ personal site
OK, I opened XCode for the first time and had it create a new pure Java
application project for me. It's neat in that it automatically gives me
the main class, along with an about box and some basic stuff. And it
lets me specify the JVM version in multiple ways -- for the target app,
and then for the compiler.
The following text is from the actual Info.plist file it built when I
had it build the "JavaSwingApp" program with most of its defaults intact.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>JavaSwingApp</string>
<key>CFBundleIconFile</key>
<string>JavaSwingApp.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>JavaSwingApp</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>0.1</string>
<key>Java</key>
<dict>
<key>ClassPath</key>
<string>$JAVAROOT/JavaSwingApp.jar</string>
<key>JVMVersion</key>
<string>1.4+</string>
<key>MainClass</key>
<string>JavaSwingApp</string>
<key>Properties</key>
<dict>
<key>apple.laf.useScreenMenuBar</key>
<string>true</string>
</dict>
</dict>
<key>NSJavaNeeded</key>
<string>YES</string>
<key>NSJavaPath</key>
<array>
<string>JavaSwingApp.jar</string>
</array>
<key>NSJavaRoot</key>
<string>Contents/Resources/Java</string>
</dict>
</plist>
You'll note that it's XML, though the specific format is Apple's "plist"
format (property list). If you want to change the target app's JVM
version, you can change that string (from what I gather by the list
offered in the IDE) to 1.3.1, 1.3*, 1.3+, 1.4, 1.4* or 1.4+. Since it's
editable, I could actually type anything there. If I omit that field
(select an empty value), it omits the <key>JVMVersion</key> and the
subordinate <string> tags entirely.
This may or may not be useful unless you also know how to build the
directory structure of a typical OS X application.
= Steve =