|
|
|
|
|
by jackjeff
783 days ago
|
|
That’s essentially what this project does. It creates the C code that the ObjC compiler would generate to “implement methods” or “send messages”. It’s somewhat doable by hand because Objc is a thin lawyer. Over 15 years ago I did stuff similar to this project to call some Objc code from a C++ app. Most of it was exposed to normal C APIs but one feature only available in AppKit. It was much simpler to do it this way than figure out how to make GCC or Objc like our C++ or any mess with bridging headers. I think the move to Swift has made that harder in some ways. But then again I don’t want to write C or C++ these days if I can avoid it. |
|