Hi Offray,

You may want to do it with a hierarchy of classes, one for each host, to
handle concretely the PDF and HTML OS viewer you want to use, and
another class to handle it uniformly.

For example MyOperation>>openPdf: aFile
then it will delegate to LinuxOperation/WindowsOperation/MacOperation
depending on the host running the VM.

That way you could add up more operation when needed.

But likely there is already something like that in the system but I
can't see.

Hilaire


Le 24/02/2017 à 02:11, Offray Vladimir Luna Cárdenas a écrit :
> 
> I'm trying to open some local files from Pharo. They're in PDF and HTML
> format. I thought that I could use WebBrowser, so it can delegate to the
> browser opening the files, without any other requirement, but is not
> working. There is a better way to open such files from several platforms?

-- 
Dr. Geo
http://drgeo.eu


Reply via email to