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

Re: Mixing C++ with Objective-C


  • Subject: Re: Mixing C++ with Objective-C
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 20 Jan 2006 11:51:37 -0800

On 1/20/06, Shawn Erickson <email@hidden> wrote:
> On 1/20/06, email@hidden <email@hidden> wrote:
> > When mixing C++ with Objective-C in a single project, is there ever a time
> > the suffix for C++ is used or all source files must use the Objective-C suffix
> > (.mm)
>
> All files that contain objective-c/c++ code in them must end in ".mm"
> to get the compiler called in the correct way. All other C++ files
> that don't contain any objective-c can end in ".cpp" (or a few other
> standard suffixes). Similarly any files that contain only objective-c
> can end in ".m".

Actually saying "must" in the above is a little strong... you can
define the file type inside of Xcode regardless of the suffix used...
however doing that can become confusing.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Mixing C++ with Objective-C (From: email@hidden)
 >Re: Mixing C++ with Objective-C (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Mixing C++ with Objective-C
  • Next by Date: NSSearchField Predicate Failure: Unable to use '<attribute name> == $value' for scalers
  • Previous by thread: Re: Mixing C++ with Objective-C
  • Next by thread: Re: Mixing C++ with Objective-C
  • Index(es):
    • Date
    • Thread