Talk About Network

Google





Mac > Mac Programmer > Objective-C++ I...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1021 of 1043
Post > Topic >>

Objective-C++ Instance Variables

by Jason8 <jason.leach@[EMAIL PROTECTED] > Jul 3, 2008 at 12:07 AM

hi:

I'm trying to bridge between my Cocoa App and my C++ framework via
Objective-C++. Apparently I can't have C++ objects as instance
variables in my ObjC class because they contain virtual methods. Also,
I don't appear to be able to include my C++ header files in by ObjC
header file; they work fine if I include them in my implementation
file (.mm).

How should I create my C++ objects and use them within my ObjC class
(over it's lifetime)?

Perhaps I should be doing this a different way? What I have is a C++
framework compiled into a dylib. I include the headers in my .mm and
link in the dylib.
 




 1 Posts in Topic:
Objective-C++ Instance Variables
Jason8 <jason.leach@[E  2008-07-03 00:07:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 18:49:41 PST 2009.