running class methods directly from OmniBrowser menu?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

running class methods directly from OmniBrowser menu?

Petr Fischer-3
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?

Thanks, pf


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: running class methods directly from OmniBrowser menu?

Bert Freudenberg
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 -