Important: The information in this document is obsolete and should not be used for new development.
TEToScrap
TheTEToScrap
function copies the contents of the TextEdit private scrap to the desk scrap.
FUNCTION TEToScrap: OSErr;DESCRIPTION
You use theTEToScrap
function to move monostyled text across applications or between an application and a desk accessory. Call the Scrap Manager functionZeroScrap
to 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 variablesTEScrpHandle
andTEScrpLength
.RESULT CODES
noErr 0 No error n oScrapErr
-100 Desk scrap isn't initialized SEE ALSO
For more information about thePutScrap
function, theZeroScrap
function, and the desk scrap, see the chapter "Scrap Manager" in Inside Macintosh: More Macintosh Toolbox.