Changes between Version 12 and Version 13 of AppleCurrencyConverterBuildingUserInterfaceWithTigerAddClasses


Ignore:
Timestamp:
Jan 21, 2008, 10:19:47 PM (12 years ago)
Author:
mikel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppleCurrencyConverterBuildingUserInterfaceWithTigerAddClasses

    v12 v13  
    2929 Change the name of the action from "myAction:" to "convert:"
    3030
    31  5. Now create an instance of the ConverterController class. In the browser, Right-click the ConverterController class and choose "Instantiate ConverterController". The browser view automatically switches to the Instances view to show you the newly-created instance of ConverterController as a blue box icon. There is a small yellow flag next to the ConverterController instances to show that it has outlets that are not connected to anything. In our final step, we'll create the correct connections for the instance's outlets, which will enable the application to send messages correctly to the objects that implement its behavior.
     31 5. Now create an instance of the !ConverterController class. In the browser, Right-click the !ConverterController class and choose "Instantiate !ConverterController". The browser view automatically switches to the Instances view to show you the newly-created instance of !ConverterController as a blue box icon. There is a small yellow flag next to the !ConverterController instances to show that it has outlets that are not connected to anything. In our final step, we'll create the correct connections for the instance's outlets, which will enable the application to send messages correctly to the objects that implement its behavior.
    3232
    3333== Converter ==
     
    4949The final step in setting up the user interface is establishing connections between the outlets and objects in the interface, so that messages are sent from the user interface to the correct objects.
    5050
    51  1.
     51 1. Connect the "Convert" button to the "!ConverterController" instance. Control-drag from the "Convert" button to the "!ConverterController" instance. Make sure the "convert:" action is selected in the "Target/Action" view of the Inspector window, then click the "connect" button to confirm.
     52
     53 2. Connect the "!ConverterController" instance to text fields. Control-drag from the "!ConverterController" instance to the "Exchange Rate" field. Select "rateField" in the "Outlets" view of the Inspector window and click "connect" to confirm. Then repeat this process, connecting "dollarField" to the "Dollars" text field, and "amountField" to the "Amount" field.
     54
     55 3. Finally, connect the "!ConverterController" to the "Converter" instance. Control-drag from the "!ConverterController" instance to the "Converter" instance. Select the "converter" outlet in the Inspector window and click "connect" to confirm.
     56
     57The nibfile now contains descriptions of the custom classes that your code will implement, including connections between their outlets and the objects with which they must communicate. You can save the nibfile and proceed to write the code that implements their behavior.
     58
     59You can continue now with the section on Creating a Lisp File.
    5260
    5361[AppleCurrencyConverter Start] [AppleCurrencyConverterBuildingUserInterfaceWithTigerEnableTabbing Previous]