<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
Jan B. Krejčí wrote:
<blockquote cite="mid1d6d304e05060801043d5eae7@mail.gmail.com"
type="cite">
<pre wrap="">On 6/8/05, Hoang Hao <a class="moz-txt-link-rfc2396E" href="mailto:hoanghao456@yahoo.com"><hoanghao456@yahoo.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">All of these works grant me a warning, Message not understood: GUIConstants
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">totalAnimatedFrames.
</pre>
</blockquote>
</blockquote>
<pre wrap="">I traced through the error and found it located in the initilization of the
testGUI.
</pre>
</blockquote>
<pre wrap=""><!---->
do you have an accessor method named totalAnimatedFrames? like:
totalAnimatedFrames
^ totalAnimatedFrames
you can not access instance variables without a method
HTH
</pre>
</blockquote>
However, there is a preference that you can check to autogenerate
accessor methods on variables. I don't know if it generates accessors
for the class or for the instance only.<br>
<br>
It seems like you are still <i>ThinkingInJava</i> (so to speak). In
Java you might do something like (not that I think it's a good idea):<br>
<tt><br>
public interface Constants {<br>
public static int TOTAL_ANIMATED_FRAMES = 5;<br>
}<br>
</tt><br>
...and then you would access it like <tt>Constants.TOTAL_ANIMATED_FRAMES</tt>
but Smalltalk doesn't have that notion (per se). Therefore you need
the message in order to access the variable.<br>
<pre class="moz-signature" cols="120">--
Jason Rogers
"I am crucified with Christ: nevertheless I live; yet not I,
but Christ liveth in me: and the life which I now live in
the flesh I live by the faith of the Son of God, who loved
me, and gave himself for me."
Galatians 2:20</pre>
</body>
</html>