gnustep-dev
[Top][All Lists]
Advanced

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

Re: GSObjCRuntime


From: David Chisnall
Subject: Re: GSObjCRuntime
Date: Sun, 14 Aug 2011 11:38:33 +0100

On 14 Aug 2011, at 11:33, Thomas Gamper wrote:

> Hi!
> 
> I would like to know if the following functions in GSObjCRuntime.h are 
> deprecated:
> 
> GS_EXPORT BOOL
> GSObjCFindVariable(id obj, const char *name,
>                  const char **type, unsigned int *size, int *offset);
> 
> GS_EXPORT void
> GSObjCGetVariable(id obj, int offset, unsigned int size, void *data);
> 
> GS_EXPORT void
> GSObjCSetVariable(id obj, int offset, unsigned int size, const void *data);
> 
> If they are not, IMHO their signatures are out of date and should be updated, 
> maybe NSUInteger for the "size" argument and ptrdiff_t for "offset"?
> 
> In case they are deprecated, any suggestions how to implement the same 
> functionality? I guess I would need to use the public interface to the objc 
> runtime...

I'm not sure if they're deprecated, but there are APIs in the runtime for 
accessing ivars.  Look at class_getInstanceVariable() and then the ivar_*() 
functions.  

David


reply via email to

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