[TIMOB-648] add API support for clipboard data

GitHub Issuen/a
Resolution Date2011-04-17T01:53:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
Labelsapidoc, clipboard, feature, ios, iphone, patch
ReporterNolan Wright
AssigneeBlain Hamon


from ticket:



  1. Stephen Tramer 2011-04-15

    Putting this on hold until 1.3.0 critical bugs are addressed.

  2. Stephen Tramer 2011-04-15

    Okay, 'hold' doesn't work the way it seems like it should. Marking 'new' instead.

  3. Stephen Tramer 2011-04-15

    Feature punt to 1.4.0.

  4. Ramy Talal 2011-04-15

    I'm very interested in this.

  5. Brion Vibber 2011-04-15

    Same as https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/302-add-support-for-uipastboard#ticket-302-2"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi... ?

  6. Brion Vibber 2011-04-15

    Spent a little weekend hacking time and threw together a quick port of the Titanium.UI.Clipboard module interface from Desktop:


    API docs, KitchenSink demo, Android, and iOS implementations are on that branch in separate commits.

    The Android clipboard is limited to plaintext, which appears to work nice enough in my initial testing.

    On iOS, in addition to text, there is theoretical support for URLs (marked as 'URL' or 'text/uri-list' as per Desktop, and using strings on our side) and images (as 'image' or actual MIME type). I haven't actually tested these code paths yet. :) Other data types may or may not be properly converted by the system libraries from the MIME type to the native clipboard UTI, and will also expect data in blob form.

  7. Don Thorp 2011-04-15

    Android commit will be from Ticket #1799

  8. Don Thorp 2011-04-15

    I've merged and pushed the docs, KS test, and Android implementation iPhone commit still needs to be picked up.

  9. Brion Vibber 2011-04-15

    Looks like the iOS code still hasn't been merged? There's a separate bug about the KitchenSink demo for for the clipboard not working on iOS:

    https://appcelerator.lighthouseapp.com/projects/32238/tickets/1962-ios-clipboard-test-fails"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1962-...

  10. Stephen Tramer 2011-04-15

    There is no clipboard implementation for iOS at this time.

  11. Brion Vibber 2011-04-15

    Yes, that's why I wrote one in September: http://github.com/brion/titanium_mobile/commit/46c00d6fe8ddc046b71cf0252450b8c959e9155f"> http://github.com/brion/titanium_mobile/commit/46c00d6fe8ddc046b71c...

    Any problems with it? Can I answer any questions about it? Do any changes need to be made to it before it's merged?

  12. Jeff Haynie 2011-04-15

    stephen, can you merge this in for 1.5? i had it on my list but it feel off. :>

  13. Blain Hamon 2011-04-15

    As of http://github.com/appcelerator/titanium_mobile/commit/a44c1b0de5412fe5b76ca74335d793b50c773885"> http://github.com/appcelerator/titanium_mobile/commit/a44c1b0de5412... , Brion's push request was merged in.

  14. Thomas Huelbert 2011-04-15

    4th gen ipod running 4.1, 3g iphone 3.1.2 .5.0.77ad8ac

JSON Source