Re: [gtkmvc-users] Logical container property triggers assertion failure
Brought to you by:
cavada
From: <to...@ce...> - 2014-08-10 02:03:26
|
On 09.08.2014, at 18:56, Philipp Burch <ph...@hb...> wrote: Hi, and thank you for your kind words. > Interesting is that the assertion failure is not triggered when I use a concrete property instead I don't think we can support notifications other than "assign" for logical properties. GTKMVC needs a better error message for that. Remember that in Python `m.someList.append(1)` means `tmp = m.someList; tmp.append(1)`. For concrete properties the model maintains a connection to the value it returns, so it can notify you of the "append" even though that line contains no m. Logical properties exist for calculated values, so GTKMVC must assume that the getter returns a different instance every time. Should the model track all of those? If append is called on two, should notifications go out in the order of the calls, or the order they were retrieved? Maybe we can find a solution depending on why you want to use logical properties. |