View Full Version : Xcode .m, .h default comments on top
Michael H
Sep 25, 2009, 11:48 AM
How do you change the default of comments at top of header in .m .h files:
Create by
&
_MyCompanyName_
to display your own personal info as default instead of changing it every time manually
electroshock
Sep 25, 2009, 12:13 PM
Fire up Terminal.app then enter this on a single line:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"="My Cool Company";}'
Then I think you'd need to restart Xcode. Subsequently created projects will inherit this.
Darkroom
Sep 25, 2009, 06:13 PM
xcode reads the info you supplied when you set up your computer which is stored in your user account's address book card. so to change the info comments at the top of the classes:
System Preferences > Accounts > Address Book Card (Open) > Edit
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.