Thanks, that's great. (I'm only thinking of running with client and server on
the same machine at the moment).
--
View this message in context:
http://forum.world.st/Phobos-Using-open-and-save-dialogs-tp4774528p4774580.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com
Hi,
I will look at it and add the methods to the Phobos code. You have to
take into account that Phobos uses client-server architecture where
server can be on a different computer. Then Pharo will not have direct
access to the file provided by XULRunner client.
Cheers,
-- Pavel
2014-08-25 11:10
It's Ok I think I've got it.
You can add a method like this to your main.js:
function doFileOpen() {
/* See:
http://developer.mozilla.org/en/docs/XUL_Tutorial:Open_and_Save_Dialogs */
var nsIFilePicker = Components.interfaces.nsIFilePicker;
var fp =
Components.classes["@mozilla.org/filep