Perform majorShrink with no pointing device

Mike Rutenberg mdrs at akasta.com
Fri Dec 7 10:54:12 UTC 2001


>[A free bottle of Ripple will be awarded to the first Squeaker to successfully perform majorShrink on a computer with no pointing device].

This is actually a pretty hard problem.  Smalltalk majorShrink requires
that it be run in an MVC project, and that it be the head project. 
Also, this typing menus trick does not work in MVC.

	<ESC>ope<CR>wo<CR>Smalltalk majorShrink<CMD D>
When you create the workspace, the cursor is not over the typing area,
so this does not work.  (Unless there is a way to move the cursor from
the keyboard?).

To get around the type in problem, you can type an expression into the
New Change Set prompter
	<ESC>ch<CR>ne<CR>Smalltalk majorShrink<CMD D>
but this does not get around the Morphic and Head project checks.

How do you use Smalltalk majorShrink in any case, since the top project
in the standard image is a Morphic?  Is there some standard way of
making a MVC project the head?

You can create a new MVC project using the expresison (ProjectViewMorph
newMVCProject model).  I imagine you could then do things to make it the
head project, and then finally do the majorShrink.

Neat question!

Mike




More information about the Squeak-dev mailing list