[Seaside] going through the tutorial..

M. Polák nigol at nigol.cz
Sun Feb 8 07:15:45 UTC 2009


On 8.2.2009, at 7:48, sergio_101 wrote:

> i found it.. i missed the part where you add the instance variables..
> then you add the accessor.. it works now..
>
> while i am on this.. what is the difference between instanceVariable
> and instanceVariable: ?
>

Hi Sergio,
	instanceVariable allows you to get value of desired variable outside  
the class. Similary instanceVariable: is designed to set variable's  
value. This is because of encapsulation, while you have acccess to  
variables only inside the class, where they are defined.


Martin


More information about the seaside mailing list