I want to write a wrapper for an Objective C library (Syphon Framework). I am not sure how to proceed and which packages to use.
I did build the library in my directory for testing. But I am not sure how to proceed, as I think Clang only works properly with C. And it demands to include .Frameworks, which is too big and makes everything fail.
I am happy for any tips how I could proceed. Thanks!
PS: I rephrased my question from a few days ago, to make it more general.
Julia can only directly call C functions, so you will first need to wrap C wrapper functions (written and compiled using Objective C) around the API you want to access, like what Apple did with the CoreFoundation library. Once you have a C API, compiled into a shared library, it is straightforward to call from Julia.
I neither think you expect this to work on Windows or Linux…
[Another thing this is a (real-time) framework as in “don’t call us, we call you”. I’m not sure a problem. You call it as a library, and it will work by still calling you? I’m not to worried about the real-time part of it. Likely will just work (and is soft-realtime).
Do you know if anything similar works on Linux or could be cross-platform to all (relevant/desktop) platforms, including macOS? At least if you run into any trouble with (with the package and) Syphon/frameworks.]
Oh, right, I forgot about this package. It looks like it works by calling the Objective-C Runtime library directly, which is possible since that low-level API is apparently written in C.
You can look up dependents for packages e.g. JuliaHub
I see only one other (registered) dependent package (plus three indirect, click above in case it may help, to see them) in case it helps MacOSIOReport.jl but I haven’t used ObjectiveC.jl myself (nor do I use a mac).