copying text from safari & pasting it into a LC fld

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm
Location: Kanagawa, Japan

copying text from safari & pasting it into a LC fld

Post by Coffee1633 » Sat Jun 29, 2013 5:26 pm

I would like to get text from the web and paste it into a livecode field. I read somewhere in the forums that if you implement your own browser window from within your LC app you can surf but not copy and paste data. Is that true?

Under the assumption that it is, I am launching Safari from the app, surf around and then copy some text from Safari to the clipboard.
However, when I get back to my app, I am unable to access the the Safari data from the clipboard.

Question 1: is it possible to copy from a LC native browser window and paste to a LC field?
Question 2: If not is it possible to copy text data from Safari and paste it into a LC field?

coffee16

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1561
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: copying text from safari & pasting it into a LC fld

Post by monte » Sun Jun 30, 2013 9:43 pm

I don't think there's clipboard support in the engine on iOS. You could probably use a native field with the built in cut, copy, paste menu when you long press... Alternatively it would be a fairly easy external to write. Trevor Devore has one that sets the clipboard... you could contribute a command that gets it:
https://github.com/trevordevore/iosclipboard

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “iOS Deployment”