> Subclassing objc/swift in nim is not implemented yet, but eventually will be 
> if there's enough interest.

I'm not sure how Nim/Obj-C interop works, but if it's difficult to emit an 
`@interface` and `@implementation` at compile-time, an alternative is to create 
the class at runtime using the C API in `<objc/objc-runtime.h>`. It's fairly 
easy to do; the trickiest part probably is that the methods need to be provided 
in the form of C functions that have `self` and `_cmd` parameters prepended.

I have some experience using this API, and I'm glad to offer advice if it's 
desired.

Reply via email to