• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When and how often do you mix C++ with Objective C in your project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: When and how often do you mix C++ with Objective C in your project? (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: External Program Control from within Cocoa App
  • Next by Date: Re: Porting SetupComm function in Mac
  • Previous by thread: Re: When and how often do you mix C++ with Objective C in your project?
  • Next by thread: Duplicating NSWindow's title bar buttons
  • Index(es):
    • Date
    • Thread