gnustep-dev
[Top][All Lists]
Advanced

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

Re: Typed selector on apple runtime question (StepTalk porting)


From: Stefan Urbanek
Subject: Re: Typed selector on apple runtime question (StepTalk porting)
Date: Tue, 09 Nov 2004 19:37:34 -0500

On Tue, 2004-11-09 at 16:41 +0000, Nicola Pero wrote:
> > Hi,
> > 

<snip>

> > 
> > NSMethodSignature *STMethodSignatureForSelector(SEL sel)
> > {
> >     const char *types;
> >     
> >     types = sel_get_type(sel);
> >     
> >     if(!types)
> >     {
> >         sel = STCreateTypedSelector(sel);
> >         types = sel_get_type(sel);
> >     }
> >     return [NSMethodSignature signatureWithObjCTypes:types];
> > }
> > 

> Typed selectors are a {GNU runtime}-only feature.  It's a GNU extension.
> 
> I suppose you should not rely on having typed selectors if you want to run
> StepTalk on Apple.  Else, you will have to assume that all arguments an d
> return types are 'id'.
> 

Then how can I fast construct a method signature on apple if i have
selector only?

Stefan
-- 
http://stefan.agentfarms.net

First they ignore you, then they laugh at you, then they fight you, then
you win.
- Mahatma Gandhi






reply via email to

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