• 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: "Clark S. Cox III" <email@hidden>
  • Date: Tue, 1 Oct 2002 07:52:54 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Monday, Sep 30, 2002, at 23:22 US/Eastern, Development wrote:

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...

There is: -ObjC++

- -- http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iEYEARECAAYFAj2ZjJsACgkQd6STocYT1xXZYwCfQcJOmVw8K2KzL+jWyUQCMj5u
x/IAn3PjVv3xZK1dnhUHzod9WHxWLZG+
=nIYu
-----END PGP SIGNATURE-----
_______________________________________________
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: C++ mixed with Cocoa (From: Development <email@hidden>)

  • Prev by Date: Subclassing NSTypesetter: NSRunStorage exception
  • Next by Date: Re: ImageNamed not refreshing
  • Previous by thread: Re: C++ mixed with Cocoa
  • Next by thread: Re: C++ mixed with Cocoa
  • Index(es):
    • Date
    • Thread