Changes between Version 8 and Version 9 of AppleCurrencyConverterAddingOutletsAndActionsToTheNib


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

--

Legend:

Unmodified
Added
Removed
Modified
  • AppleCurrencyConverterAddingOutletsAndActionsToTheNib

    v8 v9  
    2121Select the "!ConverterController" instance in the nibfile's main window, and Control-drag a connection to the "Exchange rate" text field in the application's main window. (Be sure to connect to the text field, not to its label!) When you release the mouse button, !InterfaceBuilder pops up a menu that lists the available outlets. Choose "rateField" from the menu. The "rateField" outlet of the "!ConverterController" instance is now connected to the "Exchange rate" text field.
    2222
     23Repeat the same steps for the "Dollars" field and the "Amount" field, connecting them to the "dollarField" and "amountField" outlets, respectively.
     24
     25Finally, Control-drag a connection from the "!ConverterController" instance to the "Converter" instance. Choose "converter" from the popup menu to connect the "converter" field of the "ConverterController" instance to the "Converter" instance.
     26
     27To confirm that the connections are correct, you can use the Connections view in the inspector. With the "!ConverterController" instance selected, click the blue arrow icon at the top of the Inspector window to display connections. You should see a list of outlets and the types of objects they are connected to:
     28
     29
     30
    2331[AppleCurrencyConverter Start] [AppleCurrencyConverterAddingCustomClassesToTheNib Previous]