lzw216 / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Add option to make repeated fields ArrayCollections #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently optinal or required fields may be watched using data bindings. This 
does not work for repeated (array) fields, since arrays send no events.

A solution for this would be a field option "as3_array_collection":

repeated int32 foo = 1 [(as3_array_collection) = true];

This option changes the type of the repeated field to ArrayCollection.

This enables the use of the field in a data binding as source for e.g. a spark 
list, that will update as soon as the field on the message is changed.

Original issue reported on code.google.com by jan.bo...@gmail.com on 12 Jul 2011 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by pop.atry@gmail.com on 15 Jul 2011 at 4:06

GoogleCodeExporter commented 9 years ago
Well, if ArrayCollection is worth to be supported, do we also need to support 
Vector?

Original comment by pop.atry@gmail.com on 30 Sep 2011 at 3:42