Bert Freudenberg wrote:
It's compressed. When you load a form via Form>>fromFileNamed: the project's resource manager will remember the original bits (the jpeg file). Only if the reference gets lost (the file deleted, the image moved) it will use the uncompressed bits.
I'm almost sure (though not 100%) that this code is not active anymore, forms are nowadays alway stored as plain objects. It's easy to test though - make a project, load a jpeg, save the project, unzip it - there would have to be a jpeg in the zip.
Oops. Shows how up to date I am on this code base ;-)
I would not recommend going down this path if you're new to Squeak and don't know what you are buying into. The .pr files work because half a dozen people spent a couple of years to make all of this stuff work. You'd be pretty much on your own recreating this effort so unless you have sufficient resources just try to deal with the inefficiencies and leave the architecture alone.
Actually, Yoshiki's new s-expression based project format does pretty much exactly that.
Yes, but I would still not recommend anyone start such a project until they really understand what they're getting themselves into ;-)
Cheers, - Andreas