O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

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

Challenge: Busy Board

A busy board is a toddler’s toy that is a collection of knobs, switches, and sliders to manipulate. Every action provides a visible response. To get practice working with controls, create a busy board using some common Cocoa controls.

Create a new Cocoa application like you did in this chapter. Name it BusyApp. Add the following controls:

  • a vertical slider and an adjacent text field that reports whether the slider is going up, going down, or staying the same

  • two radio buttons that turn the slider’s tick marks on and off

  • a checkbox whose label reads Uncheck me when it is checked and Check me when it is unchecked.

  • a secure text field and a button that reveals the contents of the secure text ...

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