• 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: Xcode, Cocoa and std::list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode, Cocoa and std::list


  • Subject: Re: Xcode, Cocoa and std::list
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 27 Mar 2009 11:22:09 -0700

On Mar 27, 2009, at 10:39 AM, Dave Carrigan wrote:

C++ members of an Objective-C class will not have their constructors called if the C++ class has virtual methods. See

http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html

If you're targeting Mac OS X 10.4 or later with GCC 4.0, they will — so long as you pass the -fobjc-call-cxx-cdtors flag to the compiler, which is what the "Call C++ Default Ctors/Dtors in Objective-C" build setting does.

I'll file a documentation bug to ensure the Objective-C++ documentation is clear on this.

  -- Chris

 _______________________________________________
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

References: 
 >Xcode, Cocoa and std::list (From: "McLaughlin, Michael P." <email@hidden>)
 >Re: Xcode, Cocoa and std::list (From: Dave Carrigan <email@hidden>)

  • Prev by Date: help with delegates
  • Next by Date: Xcode Plugins: AppleScript Studio "Plugin Suite" documentation example does not work
  • Previous by thread: Re: Xcode, Cocoa and std::list
  • Next by thread: Re: Xcode, Cocoa and std::list
  • Index(es):
    • Date
    • Thread