Further update to Rolodex tutorial
Karl Ramberg
karl.ramberg at chello.se
Tue Apr 24 15:24:38 UTC 2001
John Hinsley wrote:
> it *almost*
> works ;-) That's to say it will pop up an email with the fields
> correctly completed, but only for the first email address. What seems to
> be happening is that subsequent pages in the book are re-naming our
> ShowEmptyTextMorph so that what was Email on page one becomes Email2
> (for example) on a subsequent page, and so on. And this brings up a does
> not understand (as it would, since we've told it to have only Email in
> its protocol). This is logical enough (after all, if there was more than
> one Email, wouldn't it try to put as many as it could in that text
> string?) but I think the method needs some way of getting the instance
> number of the Email in order to work properly.
Well, we need to look for something else than the name of the morph.
If you explore the different pages in you bookmorph is
the email text morph at the same submorph index number each time ?
Then you can change the line
self costume owner submorphNamed: email
to
self costume owner submorphs at: (here you put the index number)
>
> A much more minor issue is that it calls the whole of Celeste where we
> really only want Mister Postman.
I think all off Celeste has to start to read in the email database etc.
One can probably do this without starting Celeste first but then the
mail will not be saved
in the sent directory.
Karl
More information about the Squeak-dev
mailing list
|