X-Code C++ Template Request (to anyone who has Xcode)

Discussion in 'Mac Programming' started by ender land, Dec 23, 2010.

  1. ender land macrumors 6502a

    Joined:
    Oct 26, 2010
    #1
    Hello everyone,

    I wanted to manipulate my C++ .h/.cpp templates. I unfortunately did this without actually saving backups of the files (doh!) and cannot seem to find a way to restore them.

    To anyone who has not messed with these templates (probably everyone who reads this) could you do me a favor and open the two templates - file.ccp and file.h - located in /Developer/Library/Xcode/File Templates/C and C++/C++ File.pbfiletemplate/

    I just need the text that is both the file.h and file.cpp files. This would be greatly appreciated!

    Thanks in advance,
    ender
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    From Xcode 3.2.5.

    file.cpp:
    Code:
    /*
     *  «FILENAME»
     *  «PROJECTNAME»
     *
     *  Created by «FULLUSERNAME» on «DATE».
     *  Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
     *
     */
    
    «OPTIONALHEADERINCLUDELINE»
    
    file.h:
    Code:
    /*
     *  «FILENAME»
     *  «PROJECTNAME»
     *
     *  Created by «FULLUSERNAME» on «DATE».
     *  Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
     *
     */
    
     
  3. ender land thread starter macrumors 6502a

    Joined:
    Oct 26, 2010

Share This Page