![]() |
TXNCopy |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Copies the current selection to the private MLTE scrap.
OSStatus TXNCopy ( TXNObject iTXNObject );
A variable of type TXNObject. Pass the text object for the current text area.
A result code.
You can use the TXNCopy function to respond to a user-requested copy action. Note that TXNCopy copies the current selection to the MLTE scrap, not to the Clipboard. To copy a selection to the Clipboard, you must first call TXNCopy, then call the function TXNConvertToPublicScrap.
You use this function on selected text. You can use the TXNIsSelectionEmpty function to determine whether the user has selected text. If the selection is not empty, you need to enable the Cut, Copy, and Clear menu items.
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)