| Version 5 (modified by mikel, 5 years ago) |
|---|
Add Text Fields
Next we will add text fields to the application window. Two of the fields are for user input: one accepts the number of dollars to convert to a foreign currency; the other accepts the exchange rate. The third text field is a read-only field that displays the dollar amount converted to the foreign currency.
In InterfaceBuilder's Palettes window, select the "Cocoa Text" view, and find the NSTextView object:
Drag an NSTextView object and drop it into the "Currency Converter" window:
Attachments
-
ibwin-tiger7.jpg
(92.9 KB) - added by mikel
5 years ago.
Cocoa Text palette
-
ibwin-tiger8.jpg
(27.1 KB) - added by mikel
5 years ago.
Dropping the NSTextView
-
ibwin-tiger9.jpg
(28.1 KB) - added by mikel
5 years ago.
Two more NSTextField objects
-
ibwin-tiger10.jpg
(36.8 KB) - added by mikel
5 years ago.
Dropping labels
-
ibwin-tiger11.jpg
(114.5 KB) - added by mikel
5 years ago.
Changing label text
-
ibwin-tiger12.jpg
(40.4 KB) - added by mikel
5 years ago.
Label text

