Version 9 (modified by mikel, 6 years ago) (diff)


Add a Button

Now we add a button that activates the currency conversion.

  1. Drag a Button object from the palette and drop it on the window

Adding a Button

  1. Double-click the button and change its title to "Convert"

Changing the Button title

  1. Select the button and then choose "Attributes" from the pull-down menu at the top of the Inspector window. Almost halfway down the "Attributes" view of the Inspector window, find the "Key Equiv" field. Choose "Return" from the pulldown menu in that field.

Choosing Return for the key equivalent

When you choose "Return", InterfaceBuilder? enters "\R" in the text field for the Key Equivalent. Now when a user hits the "Return" key, your application will behave as if they had clicked the "Convert" button.

Start Previous