Re: Calling an Obj-C method from a C++ class, how?
Re: Calling an Obj-C method from a C++ class, how?
- Subject: Re: Calling an Obj-C method from a C++ class, how?
- From: Karin Kosina <email@hidden>
- Date: Thu, 7 Oct 2004 15:25:57 +0200
On Thu, 7 Oct 2004 15:17:48 +0200, Rolf Nilsson <email@hidden> wrote:
>
My problem is how to call an Obj-C method from a C++ class.
Objective-C++ is your friend. :)
Rename your .cpp file to .mm, and simply do the usual magic:
[m_pMyControllerCocoaObj aCocoaMethodWithTwoArguments:foo
anIntValue:bar];
Or did I misunderstand what you're trying to do?
--
We are Elektropeople for a better living.
Karin Kosina, KSC (vka kyrah)
http://kyrah.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden