re: can C++ object use Object C objects?
re: can C++ object use Object C objects?
- Subject: re: can C++ object use Object C objects?
- From: Thomas Engelmeier <email@hidden>
- Date: Sun, 4 Sep 2005 11:07:23 +0200
> So my derived class just has to live in a .mm extension?? Thats it?
> Are there any limitations?
>
> so my .h can have:
>
> class CMyMacClass : public CMyXPlatClass
> {
> NSString* pstring;
>
> NSString* GetString();
>
> }
>
> cool. So then I just need to write a thin object wrapper so my
> object can live in a NSArrayController. that would just stash this
> object then return the string.
Basically it is pretty straight forward and what you wrote above does
look reasonable at casual glance.
Basically it is far from straight forward to write WELL-DEFINED
hybrids as there are two incompatible exception signaling mechanismns
- if you intend to have more than "most of the time" working
applications. (At least GCC is hacked up yet to call CTORs and DTORs
as an option in Objective-C++).
See the great paper on that topic on
<http://www.adhocconference.com/papers/2003/C_Obj-C_Error_Handling.pdf>
and Scott Meyers "Exceptional C++" series on the topic of C++ exceptions.
Regards,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden