Important: The information in this document is obsolete and should not be used for new development.
TEToScrap
TheTEToScrapfunction copies the contents of the TextEdit private scrap to the desk scrap.
FUNCTION TEToScrap: OSErr;DESCRIPTION
You use theTEToScrapfunction to move monostyled text across applications or between an application and a desk accessory. Call the Scrap Manager functionZeroScrapto initialize the desk scrap or clear its contents before callingTEToScrap.ASSEMBLY-LANGUAGE INFORMATION
Copy the contents of the private scrap to the desk scrap by calling the Scrap Manager functionPutScrap; you can get the values you need from the global variablesTEScrpHandleandTEScrpLength.RESULT CODES
noErr 0 No error n oScrapErr-100 Desk scrap isn't initialized SEE ALSO
For more information about thePutScrapfunction, theZeroScrapfunction, and the desk scrap, see the chapter "Scrap Manager" in Inside Macintosh: More Macintosh Toolbox.