[Newbies] how to search for text?
Matthew Fulmer
tapplek at gmail.com
Fri Nov 30 21:59:52 UTC 2007
On Fri, Nov 30, 2007 at 02:11:26PM -0600, itsme213 wrote:
> How do I search all method bodies for a text string?
There are a lot of ways, depending on what you are looking for.
Hilinght some text in a browser, workspace, or any other text
editor in squeak, and explore the right-click menu
implementors: shows all methods that could respond if you send a
message with the hilgighted name
senders: shows all methods that send the hilighted message at
some point
These are the two most common things you want to search for, and
they have shortcuts: cmd-m and cmd-n, respectively. Try typing
'new', select it , and try all the options
you can seach for an arbitrary string in all code by the menu
item 'method source with it', under the 'more...' menu.
other useful search tools
In the system browser, put the mouse over the top-left pane and
press cmd-f to find a class by name
in the world > open menu, there is the method finder, which lets
you search methods by name or example input/output
--
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
More information about the Beginners
mailing list