Built-in Module ObjC

ObjC

The ObjC module furnishes the following functions:


\begin{funcdesc}{make\_pointer}{integer-value}
Build and return a new \code{ObjC...
...ument is used as some
sort of a flag from the Objective-C method.
\end{funcdesc}


\begin{funcdesc}{list\_classes}{}
Build and return the list of available Objective-C classes by quering
its runtime.
\end{funcdesc}


\begin{funcdesc}{load\_object\_files}{list\_of\_object\_filenames}
Try to dynami...
...}. They may actually be object files, or
libraries of such files.
\end{funcdesc}


\begin{funcdesc}{lookup\_class}{objc\_class\_name}
Locate the given Objective-C ...
...nd if known to
the runtime return a ObjCObject wrapper around it.
\end{funcdesc}

An alternative, and maybe cleaner, way to access to the Objective-C classes is by using the .runtime member of the module.


\begin{datadesc}{runtime}
This member is a ObjCRuntime object that wraps the Obj...
...}>>> import ObjC
>>> Object = ObjC.runtime.Object\end{verbatim}
\end{datadesc}

The module provides the following others data members:


\begin{datadesc}{streams}
This is the automatically imported ObjCStreams module.
\end{datadesc}


\begin{excdesc}{error}
This is the exception that gets raised upon operation fai...
...ception argument
is a string describing the reason of the failure.
\end{excdesc}


\begin{datadesc}{__version__}
The version of the module, as a floating point num...
... manual
documents version 0.47. % XXX update this before release.
\end{datadesc}



Subsections