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 Itinerary Window

No travel planning application would be complete without providing the user with a few suggested itineraries. You’ll need to create a window so the Moon Travel Planner application can display an itinerary of suggested activities for the moon tourist. Figure 2.5 shows an idea for one itinerary. You’ll use a plain document window to display the contents of itinerary files provided with the Moon Travel Planner application.

Behavior

The itinerary window opens when the user chooses an itinerary file from Open Itinerary under the File menu. It closes when the user clicks the Close button or chooses Close from the File menu. The user should save the itinerary under a new name.

Implementation

Everything you need to implement for the itinerary window is described later, in Chapter 11. In Interface Builder, you’ll need to:

  • Create an itinerary window in a new Interface Builder file.

In Project Builder, you’ll need to:

  • Write functions to create the window from the Interface Builder file and dispose of it when it is no longer needed.

  • Write functions to allow the user to open and close an itinerary file and to save the file under a different name.

You won’t need to write code to minimize the window. The operating system takes care of that.

The Itinerary window for the Moon Travel Planner application

Figure 2-5. The Itinerary window for the Moon Travel Planner application

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