how can I make a thing that can be run?

Corneanu Dan cdan at savatech.ro
Wed Feb 15 21:45:14 UTC 2006


Kendall Shaw wrote:
> Corneanu Dan wrote:
>> Kendall Shaw wrote:
>
>>> I unzipped the ProgrammingMorhps.pr file and I can see some smalltalk
>>> code in there. At the top it looks like text with mac line endings, and
>>> I see what matches a description of smalltalk fileOut format, but at
>>> the
>>> end of the file is a bunch of binary data.
>>
>> Have you tried WorldMenu->Projects->load project from file ?
>> You can look to the code using the  SystemBrowser from the Tools drawer.
>
> Well, that loads the project. And I can browse the classes that it
> loaded. But, is there a way for me to tell what it did to instantiate
> itself, aside from by deduction?
>
>
Hmmm, I'm not sure I get your question right but I think you're doing a
confusion.
You can save any project to a file using WorldMenu->Projects->save
project on local file only.
The resulting file is not like a c++ or Java program you can compile and
execute or read it.
It is the serialized representation of the Project instance you are saving.
If you want to see what happens when you save/load a project then take a
look to
Project>>exportSegmentFileName: aFileName directory: aDirectory
ProjectLoading Class>>openFromDirectory: aDirectory andFileName: aFileName

All the classes loaded by a project are also objects associated with the
project instance (take a look to change sets).
So they were also serialized like normal objects when you have saved the
project.
Take a look to http://minnow.cc.gatech.edu/squeak/1817

I hope this helps.



More information about the Squeak-dev mailing list