O'Reilly logo

Beginning Mac OS® X Programming by Drew McCormack, Michael Trent

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

4.6. Exercises

  1. Modify the example dialog you built in the Try It Out "Building a Dialog Window" to make it resizable. All the controls should be pinned to the upper-left corner of the window. Allow the text fields to expand when the window is resized.

  2. Carbon and Cocoa both support a tab control that lets you display several sets of controls in the same area. Unlike the examples you've seen so far, you can actually put controls inside a tab control: simply switch to the tab you want and drag buttons, text fields, and the like into that tab.

    Build the interface shown in Figure 4-40 using a Cocoa nib file. This window need not be resizable.

    Figure 4.40. Figure 4-40

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