Tuts on it? Example code? A lollipop for at least trying?
I'm trying to get cut, copy and paste function to the EditorGadget, but
I don't think the WM messages for Windows will work in OSX.
I have found the page at apple.com that gives the info on the api's for
this, but at this point do not have a clue if these can be used in PB, or
if it is possible, how.
http://developer.apple.com/documentatio ... H1g-F07831
Example:
Thanks,TECopy
Copies the text selection range from the edit structure, leaving the selection range intact.
Not recommended
void TECopy (
TEHandle hTE
);
Parameters
hTE
A handle to the edit structure containing the text to be copied.
Discussion
The TECopy function copies the text to the private scrap. For text of a monostyled edit structure, the text is written to the private scrap only. For text of a multistyled edit structure, the text is written to the TextEdit private scrap, the character attribute information is written to the TextEdit style scrap, and both are written to the Scrap Manager’s desk scrap. Anything previously in the private scrap is deleted before the copied text is written to it.
For both multistyled and monostyled text, if the selection range is an insertion point, TECopy empties the TextEdit private scrap. When the selection range is an insertion point and the text is multistyled, TECopy has no effect on the null scrap, the style scrap, or the Scrap Manager’s desk scrap.
Availability
Available in CarbonLib 1.0 and later when running Mac OS 8.1 or later.
Available in Mac OS X 10.0 and later.
Declared In
TextEdit.h
-Garrett