The absolute simplest thing is to just create the process and save the image with it, it will keep on running.
> On 05 Nov 2014, at 12:05, PBKResearch <[email protected]> wrote: > > Hello > > I have a puzzle as to how to implement a start-up action. I would like to > have a monitoring process running in the background while I am working on my > project, and it would be easier if this process started up automatically when > the image is loaded. I have hunted through my current image, and I have found > three possibilities: > a. Include a file named startup.st in the same folder as the image, and > put a script to start the process in this file. > b. Add a startup: method to the class controlling the background > process, and do Smalltalk addToStartUpList: MyClass. > c. Do Smalltalk addDeferredStartUpAction: [block which starts the > process]. > The first looks easiest, but it seems untidy to rely on having a separate > file sored with the image. All these methods should work; is there any > reason to prefer any one of them, or any other better method? > > Thanks in advance for any advice. > > Peter Kenny
