PersonalAccount model question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PersonalAccount model question

Costas Menico
Why does the #model: method in PersonalAccountShell shows all
presenters using an #aspectValue: model except for
transactionsPresenter.

Instead we have this line:

transactionPresenter mode;: (aPersonalAccount transactions).

Why is this different?

Costas


Reply | Threaded
Open this post in threaded view
|

Re: PersonalAccount model question

Ted Bracht-2
Hi Costas,

[hidden email] (Costas Menico) wrote in message news:<[hidden email]>...
> Why does the #model: method in PersonalAccountShell shows all
> presenters using an #aspectValue: model except for
> transactionsPresenter.
>
> Instead we have this line:
>
> transactionPresenter mode;: (aPersonalAccount transactions).
>
> Why is this different?

By sending #aspectValue:, the object is wrapped in an AspectAdapter.
The AspectAdapter uses the standard accessors (like #name and #name:)
to access the aspect, and standardises these to #value/value:. As
collections cannot be accessed in this way (you can use the getter,
but not the setter), they can't be wrapped in an AspectAdapter.

HTH

Ted