On Jul 14, 2011, at 5:48 AM, Jonathan Schleifer wrote:
> It seems you misunderstood what ObjC++ is. ObjC++ is two separate langauges in the same file, ObjC and C++. They can't be mixed, because they are incompatible.
You can make them compatible, and we've shipped some projects that used Objective-C++ very successfully to mix C++ and Objective-C code (the C++ being a cross-platform core base, and Objective-C with Cocoa for a native GUI).
This topic has been beaten to death on various other forums and Wikis, so I hardly want to extend the discussion here. For Kelvin's benefit, there are implementations of C++ smart pointers for Objective-C objects, e.g. see
CocoaSTL also includes iterators for Objective-C containers, so that you can use STL algorithms on them. FWIW, I don't think it's worth it to try to bridge the two languages unless you have a lot of code in C++ that you want to make available in a Mac/iPhone-native app, and then you should have a very limited number of Objective-C++ files around. Trying to write code to awesomely mix and match the best of both worlds is always fun, but the engineering gains are typically limited.
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden