Xcode .m, .h default comments on top

Discussion in 'Mac Programming' started by Michael H, Sep 25, 2009.

  1. Michael H macrumors newbie

    Jan 26, 2008
    How do you change the default of comments at top of header in .m .h files:

    Create by



    to display your own personal info as default instead of changing it every time manually
  2. electroshock macrumors 6502a


    Sep 7, 2009
    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.
  3. Darkroom Guest


    Dec 15, 2006
    Montréal, Canada
    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

Share This Page