Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Programmer's Guide to MacApp / Part 2 - Working With MacApp


Chapter 17 -
Working With Views

This chapter includes recipes and sample code that demonstrate how to

Chapter 8, "Displaying, Manipulating, and Printing Data," provides a detailed overview of MacApp's view facilities.


Chapter Contents
Overview
The TView Class
Fields of TView
Methods of TView
Other View Classes
Other View-Related Classes
The TDrawingEnvironment Class
The TViewServer Class
Working With View Resource Templates
Defining View Resources
Converting Between Resource Formats
Creating Views From Resource Templates
Initializing Views Created by Template
Using Adorners With Views
Recipes--Views
Working With Views--A General Outline
Recipe--Creating Views for Displaying and Printing Versus Printing Only
Recipe--Calculating the Size of a View
Recipe--Using an Adorner With a View
Create and Initialize an Instance of an Adorner
Call the AddAdorner Method
Recipe--Using a Document Class With a Text-Editing View
Create a 'View' Resource With a Text-Editing View
Call InitUTEView From Your Main Routine
Provide a Document Class Definition
Provide Constructor and Destructor Methods
Provide an Initialization Method
Override the FreeData Method
Override the DoMakeViews Method
Override the DoNeedDiskSpace Method
Override the DoWrite Method
Override the DoRead Method
Override the Application's DoMakeDocument Method
Make Additional Modifications

Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996