• 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: Objective-C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C++


  • Subject: Re: Objective-C++
  • From: Scott Thompson <email@hidden>
  • Date: Fri, 9 Apr 2004 17:26:48 -0500

Thanks! That worked.

I had seen the .mm extension in a couple of areas online, but they used it for the cpp files instead of the Objective-C/C++ files, so I was naming things incorrectly.

Thanks again,
David

Alteratively you can also use a single,capitol "M" as the file type extension (myfile.M) though this is a bit more error prone as the rest of the OS really doesn't distinguish between myfile.M and myfile.m.

Another way to do it is to change the "Compile Sources As" value under the Gnu C/C++ compiler settings of your current target or build style. That way ALL of your files regardless of their file extension will compile as whatever C variant you like.

Scott
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Objective-C++ (From: "David Piasecki" <email@hidden>)
 >Re: Objective-C++ (From: Bertrand Landry-Hétu <email@hidden>)
 >Re: Objective-C++ (From: "David Piasecki" <email@hidden>)

  • Prev by Date: NSPopUpButtonCell in a Tableview not getting focus
  • Next by Date: Re: how to approach this..
  • Previous by thread: Re: Objective-C++
  • Next by thread: Re: Objective-C++
  • Index(es):
    • Date
    • Thread