Path: utzoo!attcan!uunet!mcsun!unido!tub!db0tui11!muhrth From: MUHRTH@tubvm.cs.tu-berlin.de (Thomas Muhr) Newsgroups: comp.lang.smalltalk Subject: Re: Which class/superclass implements a method ? Message-ID: <90218.114444MUHRTH@DB0TUI11.BITNET> Date: 6 Aug 90 09:44:44 GMT References: <648@ghp.UUCP> <32471@cup.portal.com> Organization: Technical University Berlin Lines: 17 nnget In article <32471@cup.portal.com>, CHRIS_LAVENDER_WADE@cup.portal.com says: > >Evaluate the following:- >(assume the method name is dingle:) > >Smalltalk implementorsOf: #dingle: > >(note the # -- a symbol is required) When I understood the original request correctly, it was the superclasses which were wanted as a result. The abobe solution gives you the all methods which bear the name of a message-symbol. Better try: (classXY allSubclasses add: classXY;yourself) do: [:c| c methodDictionary keys includes: #selectorXYZ] Result is an OrderedCollection of superclasses of classXY which respond to 'selectorXYZ'. - Thomas