help-gnustep
[Top][All Lists]
Advanced

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

Re: Looking for runtime functions


From: Richard Frith-Macdonald
Subject: Re: Looking for runtime functions
Date: Thu, 09 Jun 2005 21:51:11 +0100

On 2005-06-09 20:26:53 +0100 Sherm Pendley <sherm@dot-app.org> 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.





reply via email to

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