![]() |
TXNCut |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Deletes the current selection and adds it to the private MLTE scrap.
OSStatus TXNCut ( TXNObject iTXNObject );
A variable of type TXNObject. Pass the text object for the current text area.
A result code. TXNCut returns ParamErr if you pass an invalid text object. TXNCut also returns Memory Manager and Scrap Manager errors.
You can use the TXNCut function to respond to a user-requested cut action. Note that TXNCut copies the current selection to the private MLTE scrap, not to the Clipboard. To copy a selection to the Clipboard, you must use the function TXNConvertToPublicScrap.
You use this function on selected text. You can use the TXNIsSelectionEmpty function to determine whether the user has selected some 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)