• 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: sourcecode.cpp vs. sourcecode.cpp.cpp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sourcecode.cpp vs. sourcecode.cpp.cpp?


  • Subject: Re: sourcecode.cpp vs. sourcecode.cpp.cpp?
  • From: Zachary Pincus <email@hidden>
  • Date: Wed, 17 Aug 2005 15:59:52 -0700

XCode keeps a hierarchy of filetypes. (You can examine it in the file types pane of the preferences). "sourcecode" is the parent of all source files; sourcecode.cpp is the parent of all c++ files. Children of sourcecode.cpp include sourcecode.cpp.h and sourcecode.cpp.cpp (header and source files, respectively.) This matters if there were different syntax hilighting rules, etc. for the two.

Note that "sourcecode.cpp.cpp" files can have extensions .cpp, .cxx (and I think others) and still be recognized as such. The ".cpp" in "sourcecode.cpp" isn't so much a file extension as a namespace.

Zach Pincus

Program in Biomedical Informatics and Department of Biochemistry
Stanford University School of Medicine

On Aug 17, 2005, at 3:27 PM, Peter Lau wrote:

On my XCode project window, I clicked on a file entry called "main.cpp" and did a "Get Info".

I selected the "General" tab in the Get Info window.

There's an area called "File Type".

I selected the first one on the popup menu says "Default by File", and it switched automatically to "sourcecode.cpp.cpp".

I clicked on the popup and I see there's the "sourcecode.cpp" and "sourcecode.cpp.cpp".

What's the diff between those two?

Thanks in advance for your help.

pete

P.S.  I went to Terminal, the file is really called "main.cpp".

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40stanford.edu


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: sourcecode.cpp vs. sourcecode.cpp.cpp?
      • From: Peter Lau <email@hidden>
References: 
 >sourcecode.cpp vs. sourcecode.cpp.cpp? (From: Peter Lau <email@hidden>)

  • Prev by Date: Re: August documentation update, update
  • Next by Date: Re: August documentation update, update
  • Previous by thread: sourcecode.cpp vs. sourcecode.cpp.cpp?
  • Next by thread: Re: sourcecode.cpp vs. sourcecode.cpp.cpp?
  • Index(es):
    • Date
    • Thread