iPhone copy/paste

Is it possible to utilize the iPhone copy feature? I know I can populate a native.newTextField with the text I want to be copied, but I really don’t want the user to be able to edit the text - I just want it to go straight to the clipboard.

This may be possible if there is a way to set a textField as protected or disabled. Can that be done?

Thanks,

Dave [import]uid: 8194 topic_id: 1782 reply_id: 301782[/import]

There isn’t a direct-to-clipboard API call but you could use native.newTextBox as a “protected” TextField. You can put text in the TextBox and the user can select and copy the text, but can’t edit it (except for selecting the part to copy). This doesn’t really protect the text from changes because there is nothing stopping the user from pasting it into a text editing app (e.g., Notes) and changing the content.

-Tom [import]uid: 7559 topic_id: 1782 reply_id: 5320[/import]