s LearnSqueak.com

SQUEAK 6.0 / BUILD A WHOLE INTERFACE

Small objects.
Bigger ideas.

Build a board, browse a collection, and preview your preferences. Three larger interfaces show how native Morphic controls become a working application around a shared model.

03 complete demos06 native screenshots passed checks
STATE → MESSAGES → VIEWS01 + 03
Project board with three native lists and editable task detailsPreferences dashboard after verified dark-theme and compact-spacing changes

Native Squeak renders of the exact downloadable source.

PROJECT A COLLECTIONACCEPT A DRAFTNOTIFY THE VIEWSRESTORE A SNAPSHOT

01 / THREE CONNECTED INTERFACES

From widgets to applications.

Choose an interface. Compare its recorded states,
then explore its builder and behavior methods.

02 / THE CONNECTIONS THAT MATTER

A message travels through the interface.

The controls stay small.
The model makes them work together.

01 / INPUT

A widget sends a message.

A list sends selection:, an editor sends its accept selector, and a button sends an action such as save. Widgets use the model’s published protocol.

02 / STATE

The model decides.

Draft values stay separate from records until Save. Validation rejects empty titles. Filtered lists map a selected row to the underlying record. Apply copies a preference snapshot.

03 / OUTPUT

Dependent views refresh.

changed: announces each affected aspect. Lists reread their projections; text widgets reload accepted values; the custom preview changes its palette and child positions.

These demos use explicit coordinates to keep the forms easy to read. For flexible sizing, combine the same model protocols with the TableLayout example. The data is held in memory; the examples do not implement disk persistence or concurrent editing.

03 / RUN THE LIVE CONTROLS

Load the source. Open a form.

Self-contained definitions for this page.
No earlier demo file-in is required.

01

File in the definitions

Download ComplexMorphicDemos.st. Select it in Squeak’s File List and choose fileIn. Four classes appear in Complex-Morphic-Demos.

Download complete source ↓
02

Open your chosen demo

In a Workspace, select a complete command and choose Do it. For example: CUIDemos taskBoard. Each invocation creates fresh model state.

Use Inspect it to inspect the returned panel. Its #model property holds the live model.

03

Follow the source

Build the view shows class-side methods on CUIDemos. State & actions shows instance-side methods. Shared constructors and all remaining methods are included below.

Press Return in an editor to accept its draft before Save. The website displays recordings; the live controls run in Squeak.

04 / THE COMPLETE IMPLEMENTATION

No missing helper methods.

Displayed code is extracted from
the exact file-in used for verification.

Read ComplexMorphicDemos.st Four class definitions + every method ↓

05 / EXECUTED, CAPTURED, CHECKED

Evidence from real Squeak objects.

The runner loads the file-in into this project’s Squeak 6.0 image, evaluates the exact Workspace commands, and exercises native list selections, editor acceptance, button actions, checkbox actions, and slider updates. It also checks validation, empty selections, record movement, preview observers, and snapshot restoration.

Six PNGs show each interface before and after those checks. Squeak renders the native Morph tree at 1020 × 690 pixels; the runner reads each PNG back to verify its size. Export rejects failed checks or changed source/catalog hashes. The runner exits without saving the image. These are checks inside Squeak, not desktop mouse automation.

Download original PNG ↓