Xcode .m, .h default comments on top

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

  1. Michael H macrumors newbie

    Joined:
    Jan 26, 2008
    #1
    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
     
  2. electroshock macrumors 6502a

    electroshock

    Joined:
    Sep 7, 2009
    #2
    Fire up Terminal.app then enter this on a single line:

    Code:
    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

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #3
    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