1: Set _ mycomponyname _ as your company name.
In xcode, a comment module is automatically generated for the newly created OC source file. The format is as follows:
1 // 2 // firstoc. H3 // mynewoctest4 // 5 // created by jftt on 12-4-18.6 // copyright 2012 _ mycompanyname _. All rights reserved.7 //
Here, jftt is the user name, which is the same as the current user name on Mac. As for _ mycomponyname _, we need to change it to our company name. The method is as follows:
If your xcode version is earlier than xcode4, you can modify it through the following command on the command line:
1 defaults write com. Apple. projectbuilder pbxcustomtemplatemedia definitions '{"organizationname" = "jftt ";}'
Replace jftt with your company name.
For Versions later than xcode4, you can set it as follows:
Open the address book in the system application, create a business card, and enter your own name and company name in my business card.
OK. When you create a new source file in xcode, you will find the effect.
/// Firstoc. h // mynewoctest /// created by jftt on 12-4-18. // copyright 2012 jftt. All Rights Reserved .//