Max builds universal binary standalone applications on the Mac. The standalone is an application package, which is also a folder that looks like a file in the Finder. Double-clicking on the file'sicon launches the application.
-
Control-click on the standalone application and choose Show Package Contents from the contextual menu. A new Finder window will open showing the contents of the package.
YourApplication.app [ note: the .app is not shown in the Finder ]
TABSTOPContents [ folder ]
TABSTOPTABSTOPFrameworks [ folder ] – needed for external object support
TABSTOPTABSTOPInfo.plist [ copied from your Info.plist if included in a collective build script ]
TABSTOPTABSTOPYourApplication.mxf [ collective containing your patches ]
TABSTOPTABSTOPMacOS [ folder ]
TABSTOPTABSTOPTABSTOPYourApplication [ actually the Max/MSP Runtime executable ]
TABSTOPTABSTOPsupport [ folder ] – audio and MIDI support files
TABSTOPTABSTOPResources [ folder ]
TABSTOPTABSTOPTABSTOP[ custom icon file goes here ]
-
Build your application without including any shaders or frameworks in
the build script.
-
Copy the file /Library/Application Support/Cycling '74/jitter-externals/Cg.framework
to {Package}/Contents/MacOS/support/Cg.framework
-
Copy the file /Library/Application Support/Cycling '74/jitter-shaders
to {Package}/Contents/MacOS/support/jitter-shaders. Be sure to include any
shader files that the included shaders depend on; many of the included
image-processing shaders rely on one of the "passthru" vertex shader programs
that reside in the /Library/Application Support/Cycling '74/jitter-shaders/shared
folder.
-
Copy the file /Library/Application Support/Cycling '74/java/lib/max.jar to {Package}/Contents/MacOS/support/java/lib/max.jar
-
Copy any other necessary jar files (e.g. jitter.jar)to {Package}/Contents/MacOS/support/java/lib/
-
Copy /Library/Application Support/Cycling '74/java/classes/*.class to {Package}/Contents/MacOS/support/java/classes/*.class (all your necessary class files)
-
Copy the file /Library/Application Support/Cycling '74/jsextensions/ to {Package}/Contents/MacOS/support/jsextensions/
-
Control-click on your standalone application and choose Show Package Contents from the pop-up menu that appears. A new Finder
window will open that shows you the folders and files in your standalone application’s package. Copy the icon file you’ve created with
Apple's Icon Composer tool (or another application that creates these files) in the standalone application package's Resources folder.
-
Edit the Info.plist file in the standalone's Contents folder using Apple's Property List Editor or a text editor (where you will edit the
XML directly). Change the entry for the CFBundleIconFile from Max.icns to the name of the icon file you added.
In some cases, you may need to log out and log back in again before the standalone’s icon will show up.
For your standalone's icons and other Finder-related customization, standalone applications use the Info.plist file found in the
Contents folder of the standalone, plus .icns files in the Resources folder. Previous versions used BNDL, FREF, and icn# resources.
To learn more about the Info.plist file and creating and using .icns files, this Apple documentation may be helpful:
http://developer.apple.com/documentation/Carbon/Conceptual/DesktopIcons/ch13.html
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigApplications.html