On Friday, 5 June 2015 at 13:05:55 UTC, Sean Campbell wrote:
On Friday, 5 June 2015 at 12:53:45 UTC, Basile Burg wrote:
On Friday, 5 June 2015 at 12:21:19 UTC, Sean Campbell wrote:
[...]
No, you don't get my point with setters: if a during the
deserialization you restore, let's say, the _width field and
that 12 children controls rely on this field then they won't
be aware of the change.
But if the deserializer restores using the width(int value)
setter, the children can be resized if the the setter contain
a sub method like updateChildren()...
just add @customSerialized to _width and make deserialize_width
call updateChildren() or whatever
thank you, it's good to know.