Re: Looking for runtime functions

Richard Frith-Macdonald <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <de795ac43632e978477130c4a5bb37f7@blackbox>
On 2005-06-09 20:26:53 +0100 Sherm Pendley <[email protected]> wrote:

> I've written some code that uses these functions from the Apple runtime:
> 
>     /* get/set iVar values */
>     object_getInstanceVariable
>     object_setInstanceVariable
> 
>     /* fetch the objc_ivar struct for a named ivar */
>     class_getInstanceVariable
> 
> I can't seem to find the equivalents in the GNU runtime. The information
> is all there, in the various structs, there's just no ready-made function
> to retrieve it.
> 
> Do these or similar functions exist already somewhere I've missed, or do
> I need to write them?

In  GNUstep base  ... see base/Headers/Additions/GNUstepBase/GSObjCRuntime.h 
(or in the installed headers at  
/usr/GNUstep/System/Library/Headers/GNUstepBase/GSObjCRuntime.h) for runtime 
independent mechanisms to use most runtime features.
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.