[TIMOB-648] add API support for clipboard data
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | apidoc, clipboard, feature, ios, iphone, patch |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:33:40.000+0000 |
Updated | 2011-04-17T01:53:48.000+0000 |
Putting this on hold until 1.3.0 critical bugs are addressed.
Okay, 'hold' doesn't work the way it seems like it should. Marking 'new' instead.
Feature punt to 1.4.0.
I'm very interested in this.
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... ?
Spent a little weekend hacking time and threw together a quick port of the Titanium.UI.Clipboard module interface from Desktop:
http://github.com/brion/titanium_mobile/tree/clipboard">http://github.com/brion/titanium_mobile/tree/clipboard
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.
Android commit will be from Ticket #1799
I've merged and pushed the docs, KS test, and Android implementation iPhone commit still needs to be picked up.
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-...
There is no clipboard implementation for iOS at this time.
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?
stephen, can you merge this in for 1.5? i had it on my list but it feel off. :>
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.
4th gen ipod running 4.1, 3g iphone 3.1.2 .5.0.77ad8ac