Adam Strzelecki wrote: > > Just to explain things better, I found great sample of calling Obj-C > API within pure C program: > http://www.smipple.net/snippet/moriyoshi/Using%20Objective-C%20ABI%20from%20within%20a%20pure%20C%20code. > > > This is basic application that just displays a single window, and YES > it works! > BUT it is 400 lines of code, it is totally obscure. > Having it natively in Obj-C would be ~50 lines of small clean code. So > this is what a call a "nightmare", or maybe "happy coding". > Ugly, but if this will work, it works. I don't like code obfusicusion just to have it there. I like clean, commented, understandable code. Unfortunately, we have to stick with c/C++ code here.
I'm wondering if there is a C++ to ObjC library interface that would be cleaner. James McKenzie