Re: [Pyobjc-dev] Calling Objective-C++ code
Brought to you by:
ronaldoussoren
From: Douglas R. <jo...@vt...> - 2014-07-22 14:00:28
|
Hello all. Sorry about the formatting of my last email. I used the wrong address the first time, got lazy, and just hit "Forward." :) Anyway.... On Tue, Jul 22, 2014 at 2:56 AM, Ronald Oussoren <ron...@ma...> wrote: > The PyObjC core reads information about classes and methods using the Objective-C runtime > API, generally that information is enough to access Objective-C code from Python. That should > also work for Objective-C++ code, as long as you only try to use Objective-C classes (the @interface stuff) > and don’t use C++ classes in method signatures (so no methods that return a vector<int>). I'd like to use the C++ classes, so it looks like I'll need to take a crack at SIP or SWIG. If I manage to work all that out, I'll report back here with some code so that others can learn from my mistakes. (If not, well, it looks like I'll be taking a crash course in porting C++ to Objective-C.) Thanks for the help! D |