[Newbies] Finding all methods available to a class
Bert Freudenberg
bert at freudenbergs.de
Sun Apr 8 20:16:23 UTC 2007
Actually, in the menu for the class, choose "browse protocol". The
shortcut is Cmd-P.
- Bert -
On Apr 8, 2007, at 21:10 , Ian Oversby wrote:
> 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
More information about the Beginners
mailing list