Changes between Version 5 and Version 6 of AppleCurrencyConverterWritingLisp


Ignore:
Timestamp:
Jan 19, 2008, 3:39:15 PM (12 years ago)
Author:
mikel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppleCurrencyConverterWritingLisp

    v5 v6  
    1212(in-package "CCL")
    1313}}}
     14 
     15OpenMCL's Objective-C bridge code is defined in the "CCL" package. Usually, when building an application, you'll create a package for that application and import the definitions you need to use. In order to keep the discussion short in this simple example, we just place all our definitions in the "CCL" package.
     16
     17== Defining the Converter Class ==
     18
     19We begin by defining the Converter class. Recall from Apple's tutorial that this is the Model class that implements the conversion between dollars and other currencies. Here is the Lisp definition that implements the class you created in InterfaceBuilder:
     20
     21{{{
     22(defclass converter (ns:ns-object)
     23  ()
     24  (:metaclass ns:+ns-object))
     25}}}
     26
     27
    1428
    1529[AppleCurrencyConverter Start] [AppleCurrencyConverterCreatingaLispFile Previous]