I'm trying to assign a new name to an Object.
I used this syntax but didn't work:
Object source = model().find("source"); source.name = "new name";
So I did a cast to treenode:
Object source = model().find("source"); source.as(treenode).name = "new name";
This works but I read in the manual that the Object should have all the functionality of a treenode.
Is it correct or is something missing?