running class methods directly from OmniBrowser menu?
Bert Freudenberg
bert at freudenbergs.de
Fri Oct 5 16:54:33 UTC 2007
On Oct 5, 2007, at 15:22 , Petr Fischer wrote:
> Hi,
>
> now... I am thinking about "class methods" side in OmniBrowser - is
> possible to add menu item "run it" (at the first place in menu) for
> direct run given class method (without typing in workspace, ideal
> for example methods, setup and config utility methods etc.)? Is it
> usefull for others? Any volunteer from OmniBroser team?
But you can run them directly from the browser already. Type self in
front of the selector and Cmd-D.
Common practice is also to put the example in a comment ("self
doCoolStuff"). Then you just double-click after the first quotes
which selects the whole expression and again you can simply "do it".
Putting that in a menu option would imply that it is safe to do on
any class methods. Which it is not, by far.
- Bert -
More information about the Squeak-dev
mailing list
|