Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Re: Objective-C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 8 Topic 3791 of 3882
Post > Topic >>

Re: Objective-C++ Instance Variables

by Gregory Weston <uce@[EMAIL PROTECTED] > Jul 3, 2008 at 12:31 PM

In article 
<9f5ec457-7dac-4006-88db-057ef6a58dde@[EMAIL PROTECTED]
>,
 Jason8 <jason.leach@[EMAIL PROTECTED]
> wrote:

> On Jul 3, 4:52 am, Gregory Weston <u...@[EMAIL PROTECTED]
> wrote:
> > In article
> > <5f6e6f0b-0319-4525-8020-86aff5b1d...@[EMAIL PROTECTED]
>,
> >
> >  Jason8 <jason.le...@[EMAIL PROTECTED]
> wrote:
> > > hi:
> >
> > > [sorry for the cross post - saw this group too late]
> >
> > > 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.
> >
> > True, but you can have pointers to instances of that class.
> 
> Do you know how I can create one? Pointers need types, and since I
> can't include my headers and I don't seem to be able give them a type;
> nor can I use 'id'.

You can include your header from another header as long as you make sure 
that any implementation that includes that outer header is a .mm file.

G

-- 
"Harry?" Ron's voice was a mere whisper. "Do you smell something ...
burning?"
   - Harry Potter and the Odor of the Phoenix
 




 8 Posts in Topic:
Objective-C++ Instance Variables
Jason8 <jason.leach@[E  2008-07-03 00:11:05 
Re: Objective-C++ Instance Variables
Gregory Weston <uce@[E  2008-07-03 07:52:36 
Re: Objective-C++ Instance Variables
Jason8 <jason.leach@[E  2008-07-03 07:44:01 
Re: Objective-C++ Instance Variables
Gregory Weston <uce@[E  2008-07-03 12:31:13 
Re: Objective-C++ Instance Variables
William Woody <woody@[  2008-07-03 17:16:40 
Re: Objective-C++ Instance Variables
David Phillip Oster <o  2008-07-03 20:46:53 
Re: Objective-C++ Instance Variables
William Woody <woody@[  2008-07-04 16:24:53 
Re: Objective-C++ Instance Variables
David Phillip Oster <o  2008-07-04 19:48:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Dec 5 9:51:59 CST 2008.