In OB/RB you can select "refactor class > create accessors" or on invidual
variables "refactor variable > create accessors"; as well as refactor your
classes to use direct variable access or accessors (both ways).

Lukas

On Tuesday, 26 July 2011, Igor Stasenko <siguc...@gmail.com> wrote:
> On 26 July 2011 17:27, Friedrich Dominicus
> <fr...@q-software-solutions.de> wrote:
>> or maybe not.
>>
>> I have searched for a way to generate accessor functions with a program,
>> but did not understand the implementaion on Pharo but I've stolen
>> something from Gemstone Smalltalk (if that is not ok, would someone
>> please be so kind to tell me) and there is a method
>> compileMissingAccessingMethods
>>
>> and here it is:
>> compileMissingAccessingMethods
>>
>> "Creates accessing and updating methods for all instance variables that
do not
>>  already have such methods."
>>
>> Maybe I was just to stupid  to find the according function in Pharo,
>> however this stuff seems to do  what I wanted it do do.
>>
>> If someone has a better idea or just tell me the function of it in
>> Pharo, well then please do so.
>>
>
> Yes, see the #createInstVarAccessors method implementation in Browser.
> I think you can stole it from there and rewrite for own needs :)
>
>> Regards
>> Friedrich
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>

-- 
Lukas Renggli
www.lukas-renggli.ch

Reply via email to