Summary: The author discusses their work on developing a piece of software called c-ocoa that enables the use of MacOS and iOS APIs using a custom C API without relying on Objective-C (ObjC). This technology was used to implement support for OSX & iOS for a platform abstraction library called Betray. The author also explains the process of using the Objective-C runtime to call functions and retrieve metadata about classes and methods. The code generator tool used in the process is described in detail, including the steps of querying ObjC classes, flattening class hierarchies, resolving ObjC runtime types, and generating C source code.
https://felixk15.github.io/posts/c_ocoa/