Re: Adding a View to a Presenter

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

Re: Adding a View to a Presenter

Eric Taylor
Ian,

>APresenterClass addView: AViewClass asResource: ResourceName

I take it from the format of this statement that this is specifically
for the case where one is adding a subclass of View to the Presenter,
and not some instance of an existing view.

Cheers,

Eric

> -----Original Message-----
> From: Ian Bartholomew [mailto:[hidden email]]
> Posted At: Thursday, June 08, 2006 1:45 AM
> Posted To: comp.lang.smalltalk.dolphin
> Conversation: Adding a View to a Presenter
> Subject: Re: Adding a View to a Presenter
>
> Eric,
>
> > Are we doing something wrong?
>
> I'm not sure about the main part of the question, I avoid ActiveX as
much
> as
> possible, but for the comment about adding Views...
>
> There's a class side method in Presenter that allows you to add a View
to

> a
> Presenter ...
>
> APresenterClass addView: AViewClass asResource: ResourceName
>
> --
> Ian
>
> Use the Reply-To address to contact me (limited validity).
> Mail sent to the From address is ignored.


Reply | Threaded
Open this post in threaded view
|

Re: Adding a View to a Presenter

Ian Bartholomew-21
Eric,

> I take it from the format of this statement that this is specifically
> for the case where one is adding a subclass of View to the Presenter,
> and not some instance of an existing view.

Yes, sorry.  I've just re-read your question and realize that it's not quite
what you were asking.

However, I'm now a bit confused.  If you are implementing your class "as OA
implemented PushButton" then you won't need a Presenter;  the View subclass
itself takes over the role.  Any view instance added to this class will
automatically become available in the ResourceBrowser.

If you do want a Presenter then I don't _think_ you can do what you want
[1], although you _may_ be able to do it runtime by manually setting the
Presenter's view aspect.  Could get very messy though, however it's not
something I recall exploring - I've got few enough brain cells left as it
is.

[1] Although I'm not completely sure what you want :-)

--
Ian

Use the Reply-To address to contact me (limited validity).
Mail sent to the From address is ignored.