Abstract Presenters

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

Abstract Presenters

Günther Schmidt
Hi,

I've created an abstract Presenter, and wired a view to it.

I then sub classed the presenter, but the view wiring from the super
class no longer worked, it wasn't retained in the subclasses.

Is there a way to avoid having to wire the views individually in the
presenter subclasses?

Günther


Reply | Threaded
Open this post in threaded view
|

Re: Abstract Presenters

Christopher J. Demers
"Günther Schmidt" <[hidden email]> wrote in message
news:4331aa9b$[hidden email]...
> Hi,
>
> I've created an abstract Presenter, and wired a view to it.
>
> I then sub classed the presenter, but the view wiring from the super class
> no longer worked, it wasn't retained in the subclasses.
>
> Is there a way to avoid having to wire the views individually in the
> presenter subclasses?

I am not sure exactly what you are referring to, but the first thing I would
check is that if you have overridden any of the superclass methods that you
are issuing super sends from the subclass implementations.  If you have
implemented createComponents in your subclass make sure you call super
createComponents, etc...  Also onViewOpened is another method that needs to
do a super send, not including it can cause other important messages to not
be sent.

Chris


Reply | Threaded
Open this post in threaded view
|

Re: Abstract Presenters

Günther Schmidt
Hi Chris,

I actually checked, everything is ok.

I think it's got to do with the prototype mechanism which creates the views.

Günther


Reply | Threaded
Open this post in threaded view
|

Re: Abstract Presenters Never Mind, it was a typo, very sorry

Günther Schmidt
Never Mind, it was a typo, very sorry


Reply | Threaded
Open this post in threaded view
|

Re: Abstract Presenters

Ian Bartholomew-21
In reply to this post by Günther Schmidt
Günther,

> I think it's got to do with the prototype mechanism which creates the
> views.

I've subclassed Presenters before and can't recall having a problem -
the schematic wiring set up by the superclass is still valid in the
subclass.

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.