Hmm, here follows a question about controlling the order of initialization.<br><br>For example, let's assume we want to create a radio button group with individual radio buttons as kids. The invidual radio buttons are generated automatically based on the arguments passed to make-instance of the radio button groups.<br>
<br>Thus, the kids are generated in the initialize-instance of the radio button group. They must get created before call to apply-next-method. The problem is that when I generate the child here, it wants to read stuff from the parent, which is not yet completely initialized. For example, it wants to read which kid is selected (parent's selected cell) before any kids even exist!<br>
<br>I guess this is more generic problem of controlling the order of initialization of children, and perhaps delaying it until after the initialization of the parent. How do people usually go about doing this?<br><br>I can think of some work-arounds. For example set parent's selected cell to nil, and then ignore this value in kids. Or define some new state cell in the parent, which children watch for.<br>
<br>But isn't this a quite generic need in cells programs?<br><br>Best regards,<br><br>Mikko Ahonen<br>