[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: objective-c question: get selector by ascii name
From: |
Ginger Booth |
Subject: |
Re: objective-c question: get selector by ascii name |
Date: |
Tue, 29 Apr 97 15:30:00 EDT |
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.
==================================