Re: When and how often do you mix C++ with Objective C in your project?
Re: When and how often do you mix C++ with Objective C in your project?
- Subject: Re: When and how often do you mix C++ with Objective C in your project?
- From: "Sean McBride" <email@hidden>
- Date: Mon, 3 Nov 2008 19:18:32 -0500
- Organization: Rogue Research
On 11/2/08 4:17 PM, Tommy Nordgren said:
> You can invoke the constructors and destructors yourself, using
>placement new. Also, supporting GC is no big deal:
>simnply add a finalize method to destroy c++ objects.
finalize methods do not run on the main thread. Thus, in your example,
one must be sure that the C++ dtors are threadsafe.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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