Hi Natalia,
The method buildEdgesFromObjects: is deprecated. This is not your fault, it was not indicated. I have renamed the method category that contains it.
Instead, you should use RTEdgeBuilder. Here is an example: -=-=-=-=-=-=-=-=-=-= col:= 1 to: 10. v := RTView new. el:= RTBox elementsOn: col. v add: el. RTGridLayout on: el.
lb := RTEdgeBuilder new. lb view: v. lb objects: col. lb moveBehind. lb shape line color: Color red. lb connectFrom: #yourself to: [ :num | num * 2 ].
v -=-=-=-=-=-=-=-=-=-=
Regarding your script, it was nearly correct. You should not do “edge shape color: Color red”, instead you should use trachelShape, as in:
-=-=-=-=-=-=-=-=-=-= col:= 1 to: 10. v := RTView new. el:= RTBox elementsOn: col. v add: el. RTGridLayout on: el. lines:=RTEdge buildEdgesFromObjects: col from: #yourself to: [ :num | num * 2 ] inView: v. lines do: [ :edge | edge trachelShape color: Color red ]. v -=-=-=-=-=-=-=-=-=-= I know, this is not really intuitive.
Cheers, Alexandre