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
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to