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


TEToScrap

The TEToScrap function copies the contents of the TextEdit private scrap to the desk scrap.

FUNCTION TEToScrap: OSErr;
DESCRIPTION
You use the TEToScrap function to move monostyled text across applications or between an application and a desk accessory. Call the Scrap Manager function ZeroScrap to initialize the desk scrap or clear its contents before calling TEToScrap.

ASSEMBLY-LANGUAGE INFORMATION
Copy the contents of the private scrap to the desk scrap by calling the Scrap Manager function PutScrap; you can get the values you need from the global variables TEScrpHandle and TEScrpLength.

RESULT CODES
noErr0No error
noScrapErr-100Desk scrap isn't initialized
SEE ALSO
For more information about the PutScrap function, the ZeroScrap function, and 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