Defining a new command
David Röthlisberger
squeak at c3com.ch
Tue Apr 24 09:02:16 UTC 2007
Hi Alex,
> I just defined a new command for Omnibrowser, however, how can I make it
> appear on the method menu list ?
> There should be a magic invocation i guess :-)
You must add a method starting with 'cmd' to class OBCodeBrowser and place it in the
method protocol 'commands'. This method answers the class of your new command.
Every method following this convention is executed at start up of a browser and every
returned command is collected in the list of available commands for this browser.
David
More information about the Squeak-dev
mailing list
|