werbung@hans-schueren.de

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

werbung@hans-schueren.de

stepharo
Hi hans

imagine that you have an image with a program composed of several classes. One of which is the starting point of your application
let us call it BibManager (this is an app managing bib entries for example).

This class should have methods to start processing bib
    importFiles (interactive = prompt the
    importFiles:
    checkInconsistencies
    removeDuplicates
    saveNewBibFile (interactive)
    saveNewBibFiles:

then to invoke you application you can do the following

1
./pharo-vm myImageWithBibManager -eval 'BibManager new importFiles'

(check the command line option and read the deep into pharo ZeroConfig chapter)

2
you could also define a startUp method on the class side of BibManager that executes
    BibManager new importFiles

3
or you can (if you have a UI) you can open it,
    BibManagerUI new openInWorld
    save the image and when launch the image your UI will be open and ready to use.

 
Hans does it make sense to you?

Stef
 
Hello Mr. Ducasse ,


i have a complete program of Class and methods smalltalk 80 hardcopy.

The principles of Objects are understandable.

But to SAVE the image as a different program image and also RUN is a problem i dont understand yet.


When i klick the program exe the image open and normally the fullscreen program window will appear.


Are there any instructions how to "prepare" the packages and classes for starting ?



Regards


Hans



PS. I have many books about smalltalk 80.

      At this time i only want to make a very simple program for calculation to RUN.