If you want do develop applications in Pharo with native user interface,
you can use Phobos framework based on Mozilla XULRunner client. However to
start with it required to download a bundle for your platform and make some
modifications in configuration files.

To make the entry point easier I created a configuration of Phobos that you
can download directly in the Configuration Browser in Pharo 3.0. During the
download it will ask you whether you want to run PhobosDemo application.
Answer yes and it will download required files for you including
XULRunnerfor your platform into the working directory (on Linux it
expects
xulrunner is already preinstalled). Mainly on Windows make sure that
Pharois enabled on your firewall because it needs to start a server
(default
port is 46528). Then it should show a window with rich demo of Phobos
capabilities. You can play with sources of the PhobosDemo package.

To start to write your own application firstly stop the demo:

   PhobosDemo allInstancesDo: #stop.

Then make own subclass of PhobosApplication, create own subclass of
PhobosComponent and specify it in your application class as mainClass. Star
the server.

  app := MyPhobosApp new.
  app start.

..and restart the client. It is useful to run the client with the argument
-jsconsole to show errors on the JavaScript side. On MacOS you need to
modify the file PhobosDemo.app/Contents/MacOS/start.sh

Please let me know if something will went wrong.

Cheers,
-- Pavel

Reply via email to