Parcel Counter 1.0 - source release ================================= Tested: Squeak 6.1, 64-bit image build 23976, distribution Squeak6.1-23976-64bit-202606270913-Linux-x64. This is a small original Morphic example with one application class. No third-party add-on, image asset, network connection or data file is required. Direct runtime class names: Object, SystemWindow, Color, StringMorph, TextStyle, SimpleButtonMorph. The release tests additionally use TestCase. These names are shipped in the baseline tested here. This is a direct class-reference inventory, not a complete transitive dependency analysis. INSTALL 1. Use a separate fresh Squeak 6.1 image for verification. 2. Open a Workspace. Print it on: FileDirectory default fullName 3. Put ParcelCounter-export.st and ParcelCounterTests-export.st in that directory, or use their actual full paths in the commands below. 4. Evaluate these commands separately with Do it, in this order: FileStream fileIn: 'ParcelCounter-export.st'. FileStream fileIn: 'ParcelCounterTests-export.st'. 5. Print it on: ParcelCounterTest suite run. Expected: 6 runs, 6 passes, 0 failures, 0 errors. 6. Do it on: ParcelCounter open. Expected: Parcels: 0. Add one increments; Reset returns to zero. A .st class file-out has Smalltalk chunk delimiters (!). File it in. Do not execute its entire contents as one Workspace expression. The packaging-01.st through packaging-08.st files and exercise solution files are ordinary Workspace snippets; follow the lesson's selection and Do it / Print it instructions. packaging-06.st contains commands that must be selected and evaluated separately in installation order. SOURCE VERSUS IMAGE VERSUS DOCUMENT DATA The .st files define classes and methods. New counters initialize at zero. They do not serialize the live count from an existing counter object. An image snapshot saves the running object world, including open windows and live counters. Keep its .image and matching .changes together and make the matching SqueakV60.sources available for browsing system methods. A VM compatible with that image is still required to run it. This example has no external document format. Real app documents/assets must be saved and transferred separately under an explicit data format. EXPORT Use an unused output filename in Squeak's default directory: | stream | stream := FileStream newFileNamed: 'ParcelCounter-export.st'. [ParcelCounter fileOutOn: stream] ensure: [stream close]. Repeat with ParcelCounterTest and 'ParcelCounterTests-export.st'. The included release .st files were produced by Squeak's own fileOutOn:. CLEAN-INSTALL EVIDENCE An untouched baseline copy did not contain ParcelCounter before import. Both generated exports were filed in, all six tests passed, and the native app opened at zero. Its actual button action changed the count to one. Separately reopening the saved development image retained a counter at 12. All three packaging exercise solutions were run successfully. See VALIDATION.txt. The batch-action exercise intentionally adds addBatch to your working class. To ship that extra method, export again after adding it, choose a new release filename/version, and repeat the fresh-image procedure. The supplied original release does not include that optional exercise modification.