[Newbies] Finding all methods available to a class

Ian Oversby oversby at googlemail.com
Sun Apr 8 19:10:09 UTC 2007


Okay, thanks very much Edgar.  That listed the missing methods but it
doesn't list the methods that the System Browser shows.  Is there some
reason that these methods aren't listed.  Oh actually, nevermind.  I
think this is because crlf is an class method and the methods I was
looking at were instance methods.

Cheers,

Ian

On 08/04/07, Edgar J. De Cleene <edgardec2001 at yahoo.com.ar> wrote:
>
>
>
> El 4/8/07 3:19 PM, "Ian Oversby" <oversby at googlemail.com> escribió:
>
> > How do I find all the methods available to a class?  I was looking for
> > a way to output a line-ending and I finally stumbled upon "String
> > crlf" through google.  If I find the String class in the System
> > Browser and then use find method by wildcard to list all methods
> > beginning with 'c' it doesn't list crlf.
> >
> > Thanks,
> >
> > Ian
>
> Transcript open.
> YourClass methodDict keysDo: [:k| Transcript show: k;cr]
>
> Replace YourClass for what you wish
> String class methodDict keysDo: [:k| Transcript show: k;cr]
>
> Note what in this case you must add "class"
>
> Edgar
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>


More information about the Beginners mailing list