Re: Use "sel_getUid" for undeclared selector

David Ayers <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Sébastien Pierre wrote:

> Hi all !
> 
> I would like to know if it is possible to do a "sel_getUid" that  
> returns a non-NULL SEL for a selector that is not declared in the code  ?
> 
> BTW, this question is related to previous mails  
> (<http://lists.gnu.org/archive/html/help-gnustep/2005-02/msg00014.html>  
> and  <http://lists.gnu.org/archive/html/help-gnustep/2005-02/ 
> msg00013.html>).
> 

I haven't had time to look at the runtime  closely, but as your findings 
show, I'd also assume that the current GNU libobjc functions only 
retrieve references to selectors compiled into the executables.  The GNU 
runtime also has a notion of typed selectors, which might make 
generating and registering selectors dynamically a little more 
cumbersome.  I would suggest you search through libobjc (part of gcc).

Cheers,
David

PS: If you happen to require commercial support on this topic, feel free 
to contact me privately, but I'm sure there are also others on this list 
(or gcc-help@) that could help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.