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

Re: C++ mixed with Cocoa


  • Subject: Re: C++ mixed with Cocoa
  • From: Development <email@hidden>
  • Date: Tue, 1 Oct 2002 05:22:47 +0200

Hi Terence,

Am Dienstag, 01.10.02 um 03:55 Uhr schrieb Terence Goggin:

I've made sure that the .cp files were renamed to .cpp, compared against the sample code on Apple, etc.... but can't figure out what I'm missing. (And I assume this is just a flag or setting I need to adjust somewhere.)

It should be simple as described in

</Developer/Documentation/Cocoa/ObjectiveC/ObjC.pdf>, page 122:

rename your sourcecode file to ".mm"

(AFAIK:
".c" == C-Code
".cp" or ".cpp" == c-plusplus-Code
".m" == Obj-C-Code
".mm" == Obj-C-plusplus-Code)

Allthough, I'd prefer to have a "flag" or some kind of identification (a declaration in the headers) for the compiler other than the source file's file system name suffix...

hth,
Dirk Stegemann
_______________________________________________
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.

  • Follow-Ups:
    • Re: C++ mixed with Cocoa
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >C++ mixed with Cocoa (From: "Terence Goggin" <email@hidden>)

  • Prev by Date: Re: C++ mixed with Cocoa
  • Next by Date: Newbie: NSTable Autosave name not conforming to NSCoding
  • Previous by thread: C++ mixed with Cocoa
  • Next by thread: Re: C++ mixed with Cocoa
  • Index(es):
    • Date
    • Thread