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: Text /
Chapter 2 - TextEdit / TextEdit Reference


Data Structures

This section describes the data structures and their contents which provide information to the TextEdit routines. Both monostyled and multistyled edit records have a 32 KB maximum text size.

The TextEdit data structures are defined as follows:

Figure 2-15 shows the TextEdit data structures and their fields to help you understand how the TextEdit data structures are organized and related. (For a monostyled edit record, TextEdit creates only the TERec and TEDispatchRec data structures.) To read from and write to these data structures, use the TextEdit routines rather than modifying these fields directly. This practice ensures future compatibility.

For most operations, you do not need to know the exact structure of an edit record; TextEdit routines gain access to the record for you. However, when manipulating character attribute information, you might find it helpful to understand how the data structures used to contain and track character attribute information are organized.

Note
The space beyond the hooks in the TextEdit dispatch record is reserved for internal use. If you attempt to use this private area, you may corrupt TextEdit data.
Figure 2-15 The TextEdit data structures and fields


Subtopics
The Edit Record
The High Hook and Caret Hook Fields
The Style Record
The Style Table
The Line Height Table
The Null Style Record
The Style Scrap Record
The Scrap Style Table
Text Style Record

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996