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
Routines


Initializing TextEdit, Creating an Edit Record, and Disposing of an Edit Record

Preparation of a window for text editing involves setting up TextEdit's internal data structures by calling the TEInit procedure and creating an edit record for the window with the TEStyleNew function or the TENew function.

The TEStyleNew function creates a new multistyled edit record. A multistyled edit record contains text whose attributes, including font, size, and style, can vary from character to character. The TENew function creates a new monostyled edit record. A monostyled edit record contains text that is set in a single font, size, and style. Before either of these functions is called, the window must be in the current graphics port.

The TEDispose procedure destroys an edit record and releases the memory used for it. For a complete description of the edit record and its fields, see "An Overview of the TextEdit Data Structures" on page 2-14 and "Data Structures" on page 2-60.


Subtopics
TEInit
TEStyleNew
TENew
TEDispose

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996