Help - MW.zip entry garbled
Leandro Caniglia
caniglia at dm.uba.ar
Mon Feb 1 17:22:43 UTC 1999
>try
>
>http://www.sugarweb.com/Miniatures/files/Morphic/MorphicWrappers.zip
Stop! That wasn't the same last "official" version of MW for 2.3. I've just
uploaded a copy of the MW.zip package from MathMorphs to SugarWeb under the
name MorphicWrappers.zip (i.e., same location and name as above). Please,
consider downloading them again.
Saludos,
Leandro
PS: This is our MW "documentation"
MW installation guide:
- Extract the archive in your Squeak directory
- From the file list, file in 'MW-fileMeIn2.3.cs'
- After installation, use the "update code from server" menu item and save
your image.
Getting started with MW
We have not a MW documentation other than the two lessons for the
EventRecorderMorph. Basically the MWs are very simple. The main features
are:
1. Writing on the air facility
+ When a MW is in focus, self is the wrapped object
+ Up and down arrows run on the history of typing
+ There is one history thread by each of the classes of the
wrapped objects
+ A final period $. prevents the result to be grabbed to the hand.
Example: ellipse color: Color red. <enter> "with final $." is
different from ellipse color: Color red <enter> "without final $."
+ When no MW is in focus, self is the World
2. Deleting MWs
+ Backspace remove the MW in focus (if any)
3. Naming
+ You can name a MW placing the hand on it and writing:
name _ self<enter>
+ You can name a nonMW morph from the talk to me option of the red halo
4. Double clicking menu
+ Selecting a method, sends the wrapped object the corresponding message
5. Dropping arguments
+ By dragging and dropping one or more MW on a given MW, they are saved
as arguments and showed as satellites.
+ The double click menu shows the messages with the same number of args
as those dropped on the wrapper.
+ Once you have sent a message, the arguments will remain a few seconds
and then disappear
6. Changing the wrapper
+ SimpleMorphicWrappers and BitmappedMorphicWrappers can wrap any
object.
+ Dropping an ImageMorph or a ScketchMorph over a BMW changes the
picture.
+ If you have a graphic file (.bmp, gif, etc) in the Squeak directory
with the name of a class, then the BMW for objects of that class
will automatically use that graph.
+ Instances of Form use BMW by default.
+ Classes and Metaclasses can use ClassMorphicWrappers (in fact they use
them by default)
+ You can add new special wrappers for the classes you want
7. Programming with MW
+ Edit methods with ClassMorphicWrappers.
+ Edit the method aClass|selector writing on the air:
aClass | #selector <enter>
or
aClass >> #selector <enter>
+ Copy methods from a CMW to another by dragging and Shift+Dropping
(then accept (s) the copy)
+ Move methods by dragging and Control+Shift+Dropping
+ Add inst vars, class vars, pools by dropping their names (symbols) on
the target CMW
+ Change the category of a class, dropping the name of the category on
the CMW (use a dash $- if the category is a new one)
+ Shift+Drop a CMW on another to make the former a subclass of the
second (inst and class vars are handled as expected)
Hope this helps.
Leandro
More information about the Squeak-dev
mailing list
|