Adding Viewer category and methods?
Ned Konz
ned at bike-nomad.com
Mon Nov 18 20:05:26 UTC 2002
On Monday 18 November 2002 11:17 am, David Faught wrote:
> Okay, now I know I'm getting in too deep. In my
> little learning project, I added the class method
> below, trying to add some of my own things into the
> Viewer. When a morph of this class is instantiated
> and then a Viewer is opened on it, the category shows
> up in the category list, but when that category is
> selected, there are no entries under it.
>
> I'm sure that I just don't have a complete
> understanding of what's going on here and am missing
> something fundamental. Anyone care to point me in the
> right direction?
Yeah, you have to re-build the list, as I recall.
Have you tried doing:
Vocabulary initialize
Search the list archives for "Adding scripts to eToys" for a
discussion of this.
Also, additionsToViewerCategories appears to pre-date the
internationalization support; I don't know if this is still the
preferred way to add to the Viewer (though this is the way I have
always done it in the past).
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|