realbasic-nug
[Top] [All Lists]

Some text is unpastable (sometimes)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Some text is unpastable (sometimes)
From: Michael Maclean <m dot maclean at paradise dot net dot nz>
Date: Sat, 30 Oct 2004 10:55:57 +1300
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Sometimes in the past I have noticed that text copied from an RB editfield won't paste into a TextEdit rtf document whereas it's OK pasting into a plain text document. The same problem occurs when pasting into other apps that, I presume, use rtf (DEVONthink, TAO).

I can't tell if this phenomenon is a strange result of my environment (Mac OS 10.2.8, RB5.5.3) so would be interested to know if anybody else has seen this or can reproduce it.

I can produce the effect as follows:

1. Fire up RB, drag an editField into the window and set its multiline property true.

2. Compile in the IDE, type some text, select and copy any part of it to the clipboard. I find I can paste it successfully into a TextEdit window, whether the window is plain or rich text.

3. Now quit the debugger and set the editField's style property true.

4. Compile again and repeat the experiment. I find that in most cases, if the selection doesn't start with the first character of the text, the copied selection won't paste into a rich text document, though it will into plain text. For example, if the text is "the quick brown fox", I can't paste "quick" or "brown". (This is not 100% certain -- I have occasionally been able to paste such selections.) However, I find that if the selection starts at the beginning of the text, e.g. "the quick brown", pasting is reliable.

I made a little "clipboard sniffer" app that displays the bytes in the clipboard.text property in hex form. This was no help as both RB and TextEdit appear the same, viewed in this way.

Yesterday, when working on this, I tried some of the older versions of RB that lie around in my Applications folder. It appeared as if this non-pasting behaviour started with RB4.5.2. RB 4.5.1 worked OK for me.

Michael

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Some text is unpastable (sometimes), Michael Maclean <=