← More MAC Programming Techniques 1995

More MAC Programming Techniques 1995

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

More Mac Programming Techniques Chapter 5 discusses resources. Here the focus is on using multiple DITL resources in a single dialog box. This is a technique that you'll find useful in any program-especially tutorial or educational software that allows the user to move through screens of information as if flipping through the pages of a book. Also covered in this chapter are custom resource templates-the tool to creating your own resource types. Chapter 6 describes resource files. You're already familiar with the resource file that's a part of almost every Macintosh project, but there are other uses for resource files as well. In this chapter, you'll see how to write programs that use resources found in resource files, create new resource files, and copy resources from one file to another. Finally, this chapter includes and in-depth discussion and example of the very impor- tant topic of preferences files. Chapter 7 discusses files. Here you'll see how to open an existing PICT or TEXT file, and how to save your own application documents as new Pl CT or TEXT files. To do any of these tasks, you'll make use of the standard dialog boxes that the Toolbox provides for selecting or naming files. Chapter 8 covers printing. Here you'll read about the functions that make up the Printing Manager, and you'll see how to use them in a very short program that prints some graphics to your own printer-regardless of the type of printer you have connected to your Mac. After that, you'll see how to print a PICT file (like the one created in Chapter 7) and how to print the contents of a dialog box. WHAT'S ON THE DISK The disk that comes bundled with this book has a single folder on it. Within that folder are three more folders: Metrowerks Examples J, Symantec Examples f, and Utilities f. The Symantec Examples f holds the source code files and project files for the every example program that is covered in this book. If you have the Symantec C++ or THINK C compiler, you'll find that everything 2

Reading notes: Page number '2' and some hyphenated or spaced words (e.g., 'Pl CT', 'in-depth', 'ENTIRE' spacing artifacts) may reflect OCR artifacts in the source text.

Printed product names
Symantec C++ · THINK C · Printing Manager · Metrowerks Examples · Symantec Examples · Utilities
Languages
English