Re: Initialisation of componentClass

Iwan Vosloo <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Hi Jupiter,

On 16/05/2016 13:19, Jupiter Jones wrote:
> eg.
> ^ MAToManyRelationDescription new
>          ...
>          componentClass: MyFancyTableComponent;
> 	propertyAt: #fancyItemsPerPage put: 10;
>          yourself
>
> Then within MyFancyTableComponent instances you can check for the for the property in the description with:

Thanks! Of course. I never thought of that.

Is this sort of usage the intent of having properties on a MADescription?

I must say, there is something wholesome if you can actually call a 
setter: it makes the relationship between the component and the property 
explicit; it shows up as a sender etc. (But I'd much rather conform to 
how people will generally do it than try to be otherwise!)

Regards
- Iwan



-- 
Reahl, the Python only web framework: http://www.reahl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.