Auto Generation of Getters/Setters

Todd Nathan todd.nospamski. at palomablanca.net
Wed Nov 17 23:40:24 UTC 1999


> From: Scott Wallace <Scott.Wallace at disney.com>
> Date: 1999-11-17 16:43:15 -0700
> To: squeak at cs.uiuc.edu
> Subject: Re: Auto Generation of Getters/Setters
>
> At 8:06 PM -0300 11/17/99, Gerardo Richarte wrote:
> >	it's included in base Squeak. You just have to add a key named 
> >#autoAccessors to Preferences and set it to true. How to do it (don't 
> >know a better way)
> >
> >	Preferences 	Cmd-i	(inspect it)
> >
> >	in the lower pane type
> >	FlagDictionary	Cmd-i 	(inspect it)
> >
> >	now you'll be inspecting the Dicionary with all the  
preferences, add a
> >key named #autoAccessors to it, the select that key and set it's value 
> >to true (replace nil on the left pane with true and press Cmd-s)
>
>
> Easier still is simply to evaluate:
>
>     Preferences enable: #autoAccessors
>
>   -- Scott
>
>

Just in case those that want to go around and have to learn about  
Associations
and using them...

once you have the dictionary open and type the following

	self add: ( Association key: #autoAccessors value: true ).

hit cmd-d and you have it.  Yes, the latter is much nice IMHO.
Easier to remember too ;'P.  the enable: method that is.
\t





More information about the Squeak-dev mailing list