• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: calling an Objective C method from C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: calling an Objective C method from C++
      • From: Tobias Sargeant <email@hidden>
References: 
 >Re: calling an Objective C method from C++ (From: Andres Santiago Perez-Bergquist <email@hidden>)

  • Prev by Date: Sheet & Window Questions
  • Next by Date: NSMailDelivery
  • Previous by thread: Re: calling an Objective C method from C++
  • Next by thread: Re: calling an Objective C method from C++
  • Index(es):
    • Date
    • Thread