This is an os-9 feature, not supported under os-x, you need to run the VM under os-9 to use this primitive. But under os-x you can place your squeak.image file in the Resources folder, then the VM will use CFBundleCopyResourceURL to find it.
Thus you must do it in two steps, run the classic os-9 VM by finding the classic os-9 application in the MacOSClassic folder, and run it to make an embedded snapshot. Then drop the image in the resources folder so the os-x version can find it.
On Dec 7, 2004, at 6:56 AM, Noury Bouraqadi wrote:
Hi,
I retried embedding with MacOs X and again failed. Strangely, I got the follwing error : Failed to write image file (disk full?). It looks like snapshotEmbeddedPrimitive fails although I used a vm.app file which is read/write.
Now I'm wondering whether this feature is really usefull. It seems that nobody cares about it and it may cause some trouble when trying to save after embedding. May be we should remove it.
Noury
Noury Bouraqadi wrote:
Hi,
I tried to embed an image into an executable (with the VM) under winXP, but I encountred two problems: -The first (simple) one is that it rejects the original VM with '.exe' extent. So, I had to rename it... -The most important problem is that I could not run the resulting executable.
Any hint?
Thanks
--
Dr. Noury Bouraqadi - Enseignant/Chercheur Ecole des Mines de Douai - Dept. G.I.P http://csl.ensm-douai.fr/noury
European Smalltalk Users Group Board http://www.esug.org Squeak: an Open Source Smalltalk http://www.squeak.org ------------------------------------------
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===