O'Reilly logo

Mac Programming for Absolute Beginners by Wallace Wang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Inputting and Outputting Data with Labels, Text Fields, and Combo Boxes

Radio buttons, check boxes, and pop-up buttons let the user choose from a fixed list of choices. However, many times a program may need to request data that won't fit easily into a limited number of choices, such as asking for the user's name.

To accept data, a program needs to let the user type in data. To display data, a program can use a text field or a label. A label basically can display only text, but a text field can display text or allow the user to type in text. With a text field, users can type in any type of data such as text or numbers.

For even greater flexibility, you can use a combo box, which lets the user type in data or select from a list of choices, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required