This helps a ton, thanks.

After poking around with the compiler options, I found that the key here is the 
`--header` flag. I ended up with a simple line that looks like this:

`nim objc -c --noMain --header *.nim`

The header flag has the same name as the file you compiled, so compiling a Nim 
file called `yourfilehere.nim` will give you a `yourfilehere.h` that you can 
import into your other Objective-C files. As long as you have procedures marked 
with the `{.exportc.}` pragma you'll be able to call them from your code.

Reply via email to