There are some hits to using .mm rather than .m files (check the list archives). Nothing major enough to sound any dire warnings though ;-) And sometimes you are adding C++ to an existing Obj-C only project (and I hate renaming every .m file to a .mm file in version control plus the potential loss of history [depending on what your VC is]).
Cheers, -H. On 03/04/2008, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > No but you include it in a Obj-C++ source file. Rename your obj-c file with > a .mm extension. > > Le 3 avr. 08 à 18:23, Jens Alfke a écrit : > > > > > > > > On 3 Apr '08, at 9:05 AM, Herb Petschauer wrote: > > > > > > > # ifdef __cplusplus > > > extern "C" { > > > # endif > > > > > > > That won't help if the header is using C++-only syntax like namespaces and > classes. You just can't #include that stuff from a C or Obj-C source file. > > > > —Jens_______________________________________________ > > > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > > > 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: > > > http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org > > > > This email sent to [EMAIL PROTECTED] > > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]