Q: Spawning a new Squeak

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

Q: Spawning a new Squeak

K. K. Subramaniam
Hi,

I find it strange that Squeak's filelist dialog can identify and process many
types of files but not an *.image file. Is it possible for Squeak to launch a
separate VM process to run a image file or to switchover from current image
to the new image? Has anyone done it before?

Thanks in advance .. Subbu

Reply | Threaded
Open this post in threaded view
|

Re: Q: Spawning a new Squeak

johnmci
The macintosh carbon VM does this in the VM. When you double click an  
*.image file we actually get a OS-9 apple event telling us to open
this document(s) Normally we stick this data onto the drag and drop  
queue for processing as drag and drop events in the Smalltalk Code.

However an image file we actually invoke an apple script in the VM to  
start the image up using the current executable and then set that  
application
as the foreground process.

On a traditional unix system normally opening another document via  
your visual file system interface  would start another VM automatically.

Of course this could be also done via OSProcess, or FFI

On Feb 7, 2008, at 3:53 AM, subbukk wrote:

> Hi,
>
> I find it strange that Squeak's filelist dialog can identify and  
> process many
> types of files but not an *.image file. Is it possible for Squeak to  
> launch a
> separate VM process to run a image file or to switchover from  
> current image
> to the new image? Has anyone done it before?
>
> Thanks in advance .. Subbu
>

--
=
=
=
========================================================================
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================