<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><span class=gmailquote><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>On </span></font></span><span class=gmailquote>5/1/06</span><span class=gmailquote>, </span><b><span
style='font-weight:bold'><span class=gmailquote>Cowdery, Bob [</span></span></b><span
class=gmailquote><b><span style='font-weight:bold'>UK</span></b></span><span
class=gmailquote><b><span style='font-weight:bold'>]</span></b></span><span
class=gmailquote> <<a href="mailto:Bob.Cowdery@cgi-europe.com">Bob.Cowdery@cgi-europe.com</a>>
wrote:</span> </p>
<div>
<div>
<p style='margin-left:36.0pt'><font size=2 face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial'>I have some other components which
are created like so in the workspace 'SDRButtonContainer newWithInteractors:
(SDRFilterButtonBox new).'. This simply has a class initialise which takes a
bunch of buttons. Odd thing is the events work here but 'SDRButtonContainer
allInstances' still gives me nothing. I don't know therefore if these things
are linked or separate problems. </span></font></p>
</div>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> <font color=navy><span
style='color:navy'>Ralph Johnson wrote: </span></font></span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>There isn't enough
information for me to figure out your main problem, but I think I know this
one.</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I bet that
newWithInteractors: does not actually create an instance of
SDRButtonContainer. You say it "ismply has a class initialise"
so I think you are just storing the arguments in a variable of the class, but
do not actually create an instance of the class. Note that
SDRButtonContainer is a class, it is not itself a SDRButtonContainer. So,
it has not instances and allInstances SHOULD return nothing. </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>In general, we will need
more info to debug this. Give more code.</span></font></p>
</div>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>It is being
created Ralph, but see below.</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>Tom Phonex
wrote:</span></font></p>
<div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>This sounds as if your
object was garbage collected. If you want to keep your object, store it
somewhere. Objects that aren't stored anywhere get cleaned up.</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Well, it’s the obvious
reason, but I couldn’t see why the behavior was different. Now I can.
Some components set maps that create an indirect reference to the parent, others
don’t. The ones that don’t do get garbage collected which up to now
hasn’t mattered because all calls in these components are to the morph
not the parent. I think I will stop doing this stuff in the workspace and write
a script to properly create and clean up the instances.</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Thanks both for your
help.</span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Bob </span></font></p>
</div>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
</span></font></p>
</div>
</div>
<P><STRONG>*** Confidentiality Notice ***</STRONG>
Proprietary/Confidential<BR>Information belonging to CGI Group Inc. and its
affiliates<BR>may be contained in this message. If you are not a
recipient<BR>indicated or intended in this message (or responsible
for<BR>delivery of this message to such person), or you think for<BR>any reason
that this message may have been addressed to you<BR>in error, you may not use or
copy or deliver this message<BR>to anyone else. In such case, you should
destroy this<BR>message and are asked to notify the sender by reply
email.</P>
</body>
</html>