Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ender land

macrumors 6502a
Original poster
Oct 26, 2010
876
0
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
 

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
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.
 *
 */
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.