incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <...@adobe.com>
Subject Re: File API extension
Date Tue, 08 May 2012 16:53:14 GMT
+1

On 5/7/12 8:07 PM, "Shazron" <shazron@gmail.com> wrote:

>Oops, more like:
>
>var metadata = { 'icloud_backup' : true };
>cordova.exec(success, fail, "File", "setMetadata", [this.fullPath,
>metadata]);
>
>https://github.com/apache/incubator-cordova-js/blob/master/lib/common/plug
>in/Entry.js#L44
>
>On Mon, May 7, 2012 at 8:04 PM, Shazron <shazron@gmail.com> wrote:
>> That sounds great, so the exec call (pseudocode example here) could go
>> something like this:
>>
>> var metadata = { 'icloud_backup' : true };
>> cordova.exec(success, fail, "File", "setMetadata", [metadata]);
>>
>>
>> On Mon, May 7, 2012 at 7:58 PM, Simon MacDonald
>> <simon.macdonald@gmail.com> wrote:
>>> I'd go with setMetadata(Object). Let the native side interrogate the
>>>object
>>> to see what metadata needs to be set.
>>>
>>> Simon
>>>
>>> On Monday, May 7, 2012, Filip Maj wrote:
>>>
>>>> getMetadata exists, so setMetadata makes sense. W3C has no
>>>>equivalent, our
>>>> users need it, I say do it.
>>>>
>>>> On 5/7/12 5:24 PM, "Shazron" <shazron@gmail.com <javascript:;>>
wrote:
>>>>
>>>> >I don't know if we can extend the File API (I know it's W3C) or have
>>>> >an iOS specific function -- but iOS is in sore need of this
>>>> >functionality because of app rejection (re: iCloud requirements):
>>>> >https://issues.apache.org/jira/browse/CB-471
>>>> >
>>>> >I'm thinking a FileEntry.setExtendedAttribute or
>>>>FileEntry.setMetadata
>>>> >function or something. Thoughts?
>>>>
>>>>
>>>
>>> --
>>> Simon Mac Donald
>>> http://hi.im/simonmacdonald


Mime
View raw message