clipboarddata object not supported

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
RedDeupree
Posts: 15
Joined: Sat Jul 18, 2015 5:11 pm

clipboarddata object not supported

Post by RedDeupree » Thu Jul 23, 2015 10:12 pm

I found an old thread that ended with someone saying that the clipboarddata object was not supported in iOS. (or Android)
Is that still true? Is there another way? It seems to work in for OSX to set and retrieve the clipboarddata, text or rtf, but in iOS, it dies when touching the object
...
put the text of field ID 1024 into tText
set the clipboarddata["text"] to tText
...
works in OSX, dies in iOS. It appears to raise a silent error in iOS as no statement after the "set ..." executes

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: clipboarddata object not supported

Post by Klaus » Thu Jul 23, 2015 11:59 pm

Hi Red,

that's not not supported on iOS and Android!
You can check this in the dictionary, there are the supported platforms listed for a dictionary entry.


Best

Klaus

RedDeupree
Posts: 15
Joined: Sat Jul 18, 2015 5:11 pm

Re: clipboarddata object not supported

Post by RedDeupree » Fri Jul 24, 2015 1:56 am

I was checking to see if there was a workaround or an upgrade by now. the post I saw that said it was not supported was from 2012 - that's a long time ago.
What do Apple iOS products do? Is there another object that can get to whatever my iPad sees when I do copy and paste? Copy/Paste was one of the great inventions from the earliest versions of Windows and Apple OS long before OSX. Even MS DOS could recycle command prompts.

strongbow
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 146
Joined: Mon Jul 31, 2006 1:39 am
Contact:

Re: clipboarddata object not supported

Post by strongbow » Fri Jul 24, 2015 6:45 am

Use native fields - then you get all the native (ios) tools like cut/paste/autocorrect etc etc.

Check out creating an input control and a multiline control using

mobileControlCreate

etc. Or just search for "mobileControl" in the Dictionary.

cheers

Alan

RedDeupree
Posts: 15
Joined: Sat Jul 18, 2015 5:11 pm

Re: clipboarddata object not supported

Post by RedDeupree » Tue Jul 28, 2015 7:53 pm

I have submitted a feature request for a "mobile text field" in the Objects/New Control fly out menu to allow these to be drawn on cards like other controls at the very least, and to be able to get and set the common properties using the prose form of the language.

This is a bigger issue -
but yes, using mobileControlCreate and mobileControlGet/Set did solve the problem and allow me to create a mobile app with a textbox that supported copy/paste.

Thanks..

Post Reply