[squeak-dev] [ANN] Phobos for Squeak

Pavel Krivanek squeak1 at continentalbrno.cz
Sat Oct 13 20:29:03 UTC 2012


Hi,

I created a port of Phobos (framework for creation of native user
interface using XULRunner) to Squeak too.

http://code.google.com/p/phobos-framework/

It uses WebClient instead of Zinc. To load Phobos evaluate:

(Installer repository: 'http://www.squeaksource.com/WebClient')
  addPackage: 'WebClient-Core';
  install.

(Installer repository: 'http://www.squeaksource.com/Seaside30')
  addPackage: 'Grease-Core';
  addPackage: 'Grease-Pharo-Core';
  addPackage: 'Seaside-Pharo-Continuation';
  install.

(Installer repository: 'http://www.squeaksource.com/SCouchDB')
  addPackage: 'JSON';
  install.

(Installer repository: 'http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main')
  addPackage: 'Phobos-Core';
  addPackage: 'Phobos-XUL';
  addPackage: 'Phobos-HTML';
  addPackage: 'Phobos-Demo';
  addPackage: 'Phobos-WebClient';
  install.

To start the server evaluate:

app := PhobosDemo new.
app startOnWebClient.

ATTENTION: You will need to modify start.st script in the bundle.

There is one main ugly difference from Pharo, If an error on Smalltalk
side is raised, no debugger is opened. You will get the information
about an error only on the JavaScript side in JSConsole:

"
Error: The connection to ws://localhost:46528/newSession has
terminated unexpectedly. Some data may have been transferred.
Source File: chrome://myapp/content/main.js
Line: 132
"

Cheers,
-- Pavel


More information about the Squeak-dev mailing list