View Full Version : Hook to C++ class
SuperRunt
Nov 7, 2005, 01:46 PM
I have C++ classes that I would like to "activate" by clicking on a keyword or a button in an NSView or WebView. Can I set my C++ class as a delegate? If anyone has a tip on how to get my C++ code to respond it would be highly appreciated.
Thanx.
csubear
Nov 7, 2005, 02:27 PM
I have C++ classes that I would like to "activate" by clicking on a keyword or a button in an NSView or WebView. Can I set my C++ class as a delegate? If anyone has a tip on how to get my C++ code to respond it would be highly appreciated.
Thanx.
Yes and no. If you want to use that class as a delegate you would need to wrap it in Obj-C class. You can not send messages to C++ classes in Obj-C, but you can use c++ in Obj-c classes. You need to make sure you set your build settings to objc++.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.