Mantis - Croquet
Viewing Issue Advanced Details
2668 Hedgehog major always 02-04-06 00:56 03-13-06 21:47
andreas  
Croqueteer  
normal  
assigned  
open  
none    
none  
0002668: TFrame>>addChild: is order dependent
E.g. consider

  group := TGroup new.
  spinner := TSpinner new.
  cube := TCube new.

When using

  group addChild: cube.
  spinner addChild: group.

vs.

  spinner addChild: group.
  group addChild: cube.

with the first version the spinner does not work, with the second it does. This seems to be caused by addChild: examining the objectOwner which (for the group) will be set to the spinner in the second example and to the group (or nil?) in the first.

There are no notes attached to this issue.