Changes between Version 1 and Version 2 of AppleCurrencyConverterAddingCustomClassesToTheNib


Ignore:
Timestamp:
Jan 18, 2008, 7:31:18 PM (12 years ago)
Author:
mikel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppleCurrencyConverterAddingCustomClassesToTheNib

    v1 v2  
    44
    55When you use XCode to write an Objective C application, !InterfaceBuilder can read the Objective-C header files and use the information in them to create descriptions of the classes in the Objective-C code. When the application is written in Lisp, !InterfaceBuilder can't read the class descriptions from the code, and so we'll have to manually tell the nibfile about any classes that we use in the user interface.
     6
     7As you will see in the following sections, we'll use Lisp code to define two Objective-C classes: Converter, and !ConverterController. The Converter class implements the method that performs the actual currency conversion for our application; the ConverterController class provides communication between the user interface and the Converter object. We need a way to create instances of these two classes in the nibfile, so that launching the application creates these instances, and the connections between them and the rest of the user interface.