Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!gatech!howland.reston.ans.net!cs.utexas.edu!utnut!nott!cunews!dbuck
From: dbuck@superior.carleton.ca (Dave Buck)
Subject: Re: Visual Smalltalk browser questions
X-Nntp-Posting-Host: superior.carleton.ca
Message-ID: <D9w27z.H74@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University, Ottawa, Canada
References: <jnedzelD9v1AJ.7Mx@netcom.com>
Date: Fri, 9 Jun 1995 04:38:23 GMT
Lines: 47

In article <jnedzelD9v1AJ.7Mx@netcom.com>,
Jared Nedzel <jnedzel@netcom.com> wrote:
>
>I've got a couple questions on the Visual Smalltalk browser:
>
>1) Is there a way to get an alphabetical class listing, rather than the
>hierarchical listing?

You can produce a simple alphabetical list of all classes using:

Object withAllSubclasses asSortedCollection: [:x :y | x name < y name]

The browser, however, doesn't provide this for you.  Obviously, this
list won't include classes which don't have Object as a parent class
(usually there aren't many of these.)

>
>2) How can I search for sendors and/or implementors of a method other than
>the method that I'm in?  I'm getting a doesNotUnderstand because I'm sending
>a method to the wrong class, but I can't figure out how to get the darn
>browser to search for the method....

This is from memory, but you can type the following into a workspace
and doit:

Smalltalk sendersOf: #messageName
  or
Smalltalk implementorsOf: #messageName

eg.

Smalltalk sendersOf: #inject:into:

Alternatively, go to the method that sends the offending message, and
from the methods menu, choose 'messages'.  Choose the appropriate
message from the list and ask for implementors.

Good luck

David Buck
dbuck@ccs.carleton.ca

_________________________________
| David K. Buck                 |
| dbuck@ccs.carleton.ca         |
| The Object People             |
|_______________________________|
