O'Reilly logo

Learning Carbon by Apple Computer Inc

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

The Facts for the Traveler Window

You’ll need a window to display some interesting facts for the prospective moon traveler. Figure 2.4 shows a sketch of what you’ll create in the Moon Travel Planner application. You’ll display the facts in a window that has an attractive border.

The Facts for the Traveler window for the Moon Travel Planner application

Figure 2-4. The Facts for the Traveler window for the Moon Travel Planner application

Behavior

The window will open when the user chooses Show Facts from the Moon menu. The window’s title bar should display the words “Facts for the Traveler.” The user will be able to close and minimize the window. The user won’t be able to modify or copy the text displayed in the window or to resize the window. The window should be movable and will become inactive when the user makes the main or itinerary window active.

Implementation

Except where indicated, everything you need to implement the Facts for the Traveler window is described later, in Chapter 8. In Interface Builder, you’ll need to:

  • Create the window; define the window size, background, and title.

  • Add a text field; assign an ID and signature to the text field; adjust the layout of the window.

In Project Builder, you’ll need to:

  • Create content to display in the text field.

  • Add code to the main function to create the window from the nib file.

  • Write a function that gets the ID and signature of the text field, reads text from a localizable file, and displays the 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