Call Cocoa from C++
Call Cocoa from C++
- Subject: Call Cocoa from C++
- From: David Blanton <email@hidden>
- Date: Thu, 17 Dec 2009 12:16:06 -0700
I searched the archive .. no hits.
The question:
How / Can I store a pointer to an obj-c object in a C++ class and then
send messages to the obj-c object from C++?
Somethng like:
class MyClass
{
public:
void* objcptr; // ptr to my obj-c object
void CallOBJC(void);
}
MyClass::CallOBJC()
{
[objcptr updateText];
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden