Changes between Version 7 and Version 8 of AppleCurrencyConverterAddingOutletsAndActionsToTheNib


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

--

Legend:

Unmodified
Added
Removed
Modified
  • AppleCurrencyConverterAddingOutletsAndActionsToTheNib

    v7 v8  
    1111[[Image(ibwin-leopard7.jpg)]]
    1212
     13In this application, the "convert:" action is the only action defined for the user interface, so we are done with actions now. In more complex applications you may need to define many actions and outlets.
     14
     15Now we'll connect outlets to objects and actions.
     16
     17= Add Connections =
     18
     19InterfaceBuilder enables you to connect objects by '''Control-dragging''' from one to another. To Control-drag, you hold down the Control key while dragging from one object to the next.
     20
     21Select 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.
     22
    1323[AppleCurrencyConverter Start] [AppleCurrencyConverterAddingCustomClassesToTheNib Previous]