Registering categories to Vocabulary
Karl Ramberg
karl.ramberg at chello.se
Sun Apr 15 18:58:08 UTC 2001
Bob Arning wrote:
> 1. Add a description of your method to Morph class>>additionsToViewerCategories like the snippet below:
> ...
> (miscellaneous (
> (command doMenuItem: 'do the menu item' menu)
> (command karlsCommand 'whatever Karl wants')
> (command show 'make the object visible')
> ...
Doh.. I think I'm going blind. I've been looking all day for that, and I
did not look
in the most obvious place... My stupid brain outsmarted me again...
>
> 2. Add a corresponding method to Player to do the real work:
>
> 'From Squeak3.1alpha [latest update: #''Squeak3.1alpha'' of 5 February 2001 update 3928] on 15 April 2001 at 2:00:17 pm'!
>
> !Player methodsFor: 'Karls commands' stamp: 'RAA 4/15/2001 13:59'!
> karlsCommand
>
> self costume position: self costume bottomRight! !
>
> 3. Vocabulary initialize
>
> Your addition is now available in the viewer and will work.
>
> Cheers,
> Bob
Thanks. Works like a breeze now:-)
More information about the Squeak-dev
mailing list
|