discuss-gnustep
[Top][All Lists]
Advanced

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

Re: ANN: GNUstep 2.6.0 for openSUSE 11.4


From: David Chisnall
Subject: Re: ANN: GNUstep 2.6.0 for openSUSE 11.4
Date: Wed, 15 Jun 2011 10:32:44 +0100

On 15 Jun 2011, at 10:16, Nat! wrote:

> It's more of an experiment porting my stuff to GNUstep, so your advice 
> nonwithstanding I think my plan, will work, because I believe I only use it 
> objc_msgSend for simple calls (max. one or two id parameters and return 
> value). Otherwise I would have to change a lot of source.

I used to have a macro that did this in runtime.h, but I removed it because 
it's very easy to use it wrongly.  If you're sure that you're only using id 
parameters, then you can use something like this:

#define objc_msgSend(obj, sel, ...) 
class_getMethodImplementation(object_getClass(obj), sel)(obj, sel, ## 
__VA_ARGS__)

> Hmm, this could indicate that I _do_ have the wrong set of headers. In 
> /usr/lib/gcc/i586-suse-linux/4.5/include/objc I neither see caps.h nor 
> runtime.h. 
> But it's not a big problem, for my experiments I can live without them.

That means that you're using the GCC runtime (the gcc in the path is a hint).  
Since it's the 4.5 runtime, you will be using the runtime API implementation 
from the ObjectiveC2 framework in GNUstep-base.

David

--
This email complies with ISO 3103




reply via email to

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