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


The Null Style Record

The null style record contains the null scrap, which is used to store the character attribute information for a null selection (insertion point). A number of routines either write this character attribute information to the null scrap or read it from this scrap (to be applied to inserted text). The null scrap is created and initialized when an application calls TEStyleNew to create a multistyled edit record. The null scrap is retained for the life of the edit record; it is destroyed when TEDispose destroys the edit record and releases the memory allocated for it.

The NullSTRec data type defines the null style record.

TYPE NullStRec = 
   RECORD
      teReserved:    LongInt; {reserved for future expansion}
      nullScrap:     StScrpHandle;  {handle to the style scrap }
                                    { record}
   END;

NullStPtr = ^NullStRec;
NullStHandle = ^NullStPtr;
Field Description
teReserved
This field is reserved for future expansion.
nullScrap
A handle to the style scrap record.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996