In the
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Cocoa Touch/Objective-C class.xctemplate/NSObject
directory there are template files called ___FILEBASENAME___.m
and ___FILEBASENAME___.h
. What you need to do is change the ___FILEBASENAME___.h
file (using something like vim, TextWrangler, etc) from this:
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
___IMPORTHEADER_cocoaTouchSubclass___
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
@end
To this:
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved.
//
___IMPORTHEADER_cocoaTouchSubclass___
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ {
@private
}
@end
Poke around in /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/
and /Developer/Library/Xcode/Templates/File Templates
to see more templates you can customize.
Or use this python script I wrote to customize them all automatically (after tweaking the python script to fit your customization needs):
http://blog.hozbox.com/2011/11/20/easy-xcode-template-customization/