Re: calling an Objective C method from C++
Re: calling an Objective C method from C++
- Subject: Re: calling an Objective C method from C++
- From: Paul Cezanne <email@hidden>
- Date: Thu, 27 Feb 2003 13:58:22 -0500
At 1:09 PM -0500 2/27/03, Andres Santiago Perez-Bergquist wrote:
>
>
You should just be able to do "[myController onJunk:j label:titleStr];" (at least if you follow the advice below).
I can't, but you don't know that because I left out one step. My C++ class is also not under my control, I have a callback I have to go through and I can't tell it about class. Very frustrating.
I did however get it to work by replacing "id" with "void *" I hope that that is a "legal" solution.
>
>At first I thought that I wasn't compiling with the Objective-C compiler, so I changed it to be a .m file. That didn't help.
>
>It seems that when compling this file, the compiler doesn't know what id is. How can I make it know that? Thanks.
>
>
Make it a .mm file, for Objective-C++.
Sadly it already was...
--
--
Paul Cezanne
Senior Member of Technical Staff
Sequel Imaging
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.