swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objective-c question: get selector by ascii name


From: Rick Riolo
Subject: Re: objective-c question: get selector by ascii name
Date: Tue, 29 Apr 1997 15:48:30 -0400 (EDT)

Hi Ginger,
Yep, that does it!  Thanks!
 - r

ps Just for my edification: how did you find that?

Rick Riolo                       address@hidden
Program for Study of Complex Systems (PSCS)
1061 Randall Lab     University of Michigan
Ann Arbor MI 48109-1120
http://pscs.physics.lsa.umich.edu/PEOPLE/rlr-home.html

On Tue, 29 Apr 1997, Ginger Booth wrote:

> Date: Tue, 29 Apr 97 15:30:00 EDT
> From: Ginger Booth <address@hidden>
> To: address@hidden
> Subject: Re: objective-c question: get selector by ascii name
> 
> Hi, Rick,
>     Fwiw, this works:
> 
>     -loadCommand
>         // OK, try to execute it.  For now, only no-arg commands allowed.
>     {
>         SEL sel;
>     
>         sel = sel_get_uid( wordBuffer );
>         if ( sel ) {
>             if ( [self respondsTo: sel] ) {
>               [self perform: sel];
>             } else {
>                 geckoError(InvalidCombination, 
>                     "Protocol error, command '%s' not recognized.\n", 
>                     wordBuffer);
>             }
>         } else {
>             geckoError(InvalidCombination,
>                 "Protocol error, command '%s' not recognized.\n", 
>                 wordBuffer);
>         }
>         return self;
>     }
>     
> So I think the answer is "it's called sel_get_uid in gcc".
> 
> Ciao,
>     Ginger
>     
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================
> 

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]