Thanks! There is one problem though. I get an error on this line:
OSTypes.append me.cachedPtr.OSType( pos )
It's in ClipboardEx:BackupData. The error is "Unknown identifier
'OSType'".
Do I need certain plugins, or a specific version of RB to run this?
Woops. Yeah, I guess you'll need TT's memoryblock plugin then.
Also, about the background stuff. I've verified that the original
example I
found works in OS 9. Do you mean the saving of the clipboard won't
work in
the background or the actual appending won't work?
This is how I understand it. Every app basically has its own clipboard.
When an app is activated, it copies the global clipboard to its own,
when it's deactivated, it copies its clipboard to the global one. So you
can't really read/write to the "real" clipboard if your app is not
frontmost. But maybe in this case you don't need to, since you are only
using it for your own internal purposes...
I think I've found a better solution though. WASTEField looks very
promising. I haven't exactly tested it yet, but it looks like you can
append styled text pretty easily with it.
Yeah, that's one option, but there are problems with WASTEField, such as
it doesn't work on Win32, and some little idiosyncrasies... it's not
being updated much either, and although the RB editfield is really
pretty bad (especially on OS X where it's too slow to use), they are
working on making it better at least...
|