saveAsEmbeddedImage - filename

Tim Rowledge tim at rowledge.org
Thu May 12 17:37:35 UTC 2005


Bert Freudenberg <bert at impara.de> wrote:

> 
> Nothing, it just does not work. Nobody used this in ages (I'm not  
> even sure this ever worked).

The only difference right now between 'embedded' or not is that 'not' makes the
vm type-stamp the image on platforms where type-stamping has any meaning. On
Macs it sets the type and creator fields, on RISC OS it sets the filetype and
on anything else it does nothing but hopefully does it very fast.

Although it doesn't seem connected at all (at first) there is also the
'sqImageFileStartLocation' function/macro (depending on the platform) which in
the case of the Mac looks to see if the filename given for the image is that of
an already extant file that happens to be a plausible VM. If it is, the Mac
resource voodoo is invoked to add the image file to the VM and assorted
chickens are sacrificed to make it all happen.  I couldn't spot any evidence of
similar code for the other platforms.

tim
--
Tim Rowledge, tim at rowledge.org, http://www.rowledge.org/tim
Strange OpCodes: SDP: Search and Destroy Pointer



More information about the Squeak-dev mailing list