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 / Displaying and Scrolling Text


TECopy

The TECopy procedure copies the text selection range from the edit record, leaving the selection range intact.

PROCEDURE TECopy (hTE: TEHandle); 
hTE
A handle to the edit record containing the text to be copied.
DESCRIPTION
The TECopy procedure copies the text to the private scrap. For text of a monostyled edit record, the text is written to the private scrap only. For text of a multistyled edit record, the text is written to the TextEdit private scrap, the character attribute information is written to the TextEdit style scrap, and both are written to the Scrap Manager's desk scrap. Anything previously in the private scrap is deleted before the copied text is written to it.

For both multistyled and monostyled text, if the selection range is an insertion point, TECopy empties the TextEdit private scrap. When the selection range is an insertion point and the text is multistyled, TECopy has no effect on the null scrap, the style scrap, or the Scrap Manager's desk scrap.

SEE ALSO
For more information about the desk scrap, see the chapter "Scrap Manager" in
Inside Macintosh: More Macintosh Toolbox.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996