Carbon


TXNConvertFromPublicScrap

Header: MacTextEditor.h Carbon status: Supported

Converts the Clipboard content to the private MLTE scrap.

OSStatus TXNConvertFromPublicScrap ();
function result

A result code. TXNConvertFromPublicScrap returns errors from the Memory Manager and Scrap Manager, as well as noErr.

DISCUSSION

Calling the TXNConvertFromPublicScrap function ensures that the contents of the system Clipboard are available to your application.

You should call the TXNConvertFromPublicScrap function after another application has modified the content of the Clipboard. Typically, upon receiving a resume event you use the Scrap Manager function GetCurrentScrap to determine whether the Clipboard content has been modified. If so, you should then call TXNConvertFromPublicScrap.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)