LifeViewer cutting and pasting issue
Posted: February 10th, 2020, 1:00 am
I'm trying to track down a problem I'm having between LifeViewer and an app I'm working on.
On a webpage, I try to copy a pattern that's being displayed by using "ctrl-c". I then get that string and attempt to paste it into by app. There's nothing but an empty string. This is an iOS app, so I've looked at various encodings (UTF8, UTF16, ASCII, ancient MacOS), and none seem to matter.
If I paste the string into a TextEdit document, it appears just fine. But pasting into an XCode (Apple's development IDE), or a Terminal window, I see the same behavior-- no string. So it's not just my ignorance of pasting strings. Somethin' ain't right, somewheres.
What is being placed in the pasteboard/clipboard? I'm using Safari on a Mac to display the string I want to copy. The strings in the "SELECT ALL / SHOW IN VIEWER" box work just fine, so I suspect it's something to do with the way JavaScript does the copy.
On a webpage, I try to copy a pattern that's being displayed by using "ctrl-c". I then get that string and attempt to paste it into by app. There's nothing but an empty string. This is an iOS app, so I've looked at various encodings (UTF8, UTF16, ASCII, ancient MacOS), and none seem to matter.
If I paste the string into a TextEdit document, it appears just fine. But pasting into an XCode (Apple's development IDE), or a Terminal window, I see the same behavior-- no string. So it's not just my ignorance of pasting strings. Somethin' ain't right, somewheres.
What is being placed in the pasteboard/clipboard? I'm using Safari on a Mac to display the string I want to copy. The strings in the "SELECT ALL / SHOW IN VIEWER" box work just fine, so I suspect it's something to do with the way JavaScript does the copy.