blob: 090deb69bd32c856199a52f88a54c0e0c5f9362a (
plain)
1
2
3
4
5
6
|
<div class="section-level-extent" id="GNU-Objective-C-runtime-API"> <div class="nav-panel"> <p> Next: <a href="executing-code-before-main" accesskey="n" rel="next"><code class="code">+load</code>: Executing Code before <code class="code">main</code></a>, Up: <a href="objective-c" accesskey="u" rel="up">GNU Objective-C Features</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="section" id="GNU-Objective-C-Runtime-API"><span>8.1 GNU Objective-C Runtime API<a class="copiable-link" href="#GNU-Objective-C-Runtime-API"> ¶</a></span></h1> <p>This section is specific for the GNU Objective-C runtime. If you are using a different runtime, you can skip it. </p> <p>The GNU Objective-C runtime provides an API that allows you to interact with the Objective-C runtime system, querying the live runtime structures and even manipulating them. This allows you for example to inspect and navigate classes, methods and protocols; to define new classes or new methods, and even to modify existing classes or protocols. </p> <p>If you are using a “Foundation” library such as GNUstep-Base, this library will provide you with a rich set of functionality to do most of the inspection tasks, and you probably will only need direct access to the GNU Objective-C runtime API to define new classes or methods. </p> <ul class="mini-toc"> <li><a href="modern-gnu-objective-c-runtime-api" accesskey="1">Modern GNU Objective-C Runtime API</a></li> <li><a href="traditional-gnu-objective-c-runtime-api" accesskey="2">Traditional GNU Objective-C Runtime API</a></li> </ul> </div><div class="_attribution">
<p class="_attribution-p">
© Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
<a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/GNU-Objective-C-runtime-API.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/GNU-Objective-C-runtime-API.html</a>
</p>
</div>
|