Context Navigation

Building the Application

Both the user interface and the behavior of the Currency Converter are complete now. All that remains for us to do is to build the application executable into a Cocoa application bundle. Apple's tutorial relies on XCode to build the application from Objective-C source files; we will use the Clozure CL IDE to build it from our Lisp source file.

We build the application using the optional BUILD-APPLICATION feature, distributed as part of Clozure CL. The steps to build the Cocoa application are:

Launch the Clozure CL IDE. It's safest to build the application with a fresh IDE session, so if you have it running, you may wish to quit and relaunch before following the rest of the steps.

For convenience, set the working directory to your "currency-converter" folder. For example, you can do something like this (using your pathnames in place of mine, of course:):

By default, BUILD-APPLICATION constructs the application bundle in the current working directory. If you followed the instructions here, that means it will build CurrencyConverter.app in your currency-converter folder. You can control where BUILD-APPLICATION puts the application bundle by passing a pathname as the value of the keyword argument :DIRECTORY, like so:

If all goes well, BUILD-APPLICATION constructs an application bundle, copies "CurrencyConverter.nib" into it, writes the application executable, and quits. You should now be able to launch CurrencyConverter.app by double-clicking the application icon: