Re: newbie memory question
Re: newbie memory question
- Subject: Re: newbie memory question
- From: Daniel Child <email@hidden>
- Date: Tue, 16 Nov 2004 11:15:48 -1000
On Tuesday, November 16, 2004, at 07:30 AM, Harilaos Skiadas wrote:
The question is, the class that does all this work
and containing the methods countLetters etc, does it
need to know the value of whatUserTyped outside the
countLetters method? As the code is now, the value of
whatUserTyped might become invalid the moment the
program leaves countLetters.
Actually, whatUserTyped and theLength are both used in updateUI. Both
methods (countLetters and startOver) set the variables' values, and
then call updateUI to redraw the interface correctly. So the way I
wrote it, you do need to keep those values, I think.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden