Question about the WebBrowserShell Sample

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

Question about the WebBrowserShell Sample

Eric Taylor
Hello Forum,

In WebBrowserShell, there's a method called #historyForward:, which
contains this statement:

        browser view controlDispatch GoForward

where browser is an instance variable holding a reference to a
URLPresenter.  How does view know which controlDispatch to return?  What
if the URLPresenter had contained several ActiveX controls in its view?


Cheers,

Eric


Reply | Threaded
Open this post in threaded view
|

Re: Question about the WebBrowserShell Sample

Ian Bartholomew-21
Eric,

> where browser is an instance variable holding a reference to a
> URLPresenter.  How does view know which controlDispatch to return?  What
> if the URLPresenter had contained several ActiveX controls in its view?

URLPresenter is not a subclass of ContainerView and therefore can't, at the
Dolphin level at least, have any subviews.   A Dolphin view that is a
container would have to give each subview a name and you would refer to that
directly ....

 (aPresenter view viewNamed: 'whatever') controlDispatch GoForward

--
Ian

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