__MyCompanyName__ : Where are you?

Discussion in 'Mac Programming' started by zeppenwolf, Dec 5, 2009.

  1. zeppenwolf macrumors regular

    zeppenwolf

    Joined:
    Nov 17, 2009
    #1
    // Created by Eden Smallwood on Fri Dec 04 2009.
    // Copyright (c) 2009 __MyCompanyName__. All rights reserved.

    Ok, this is a bit of a silly question. I'm building stuff in PB, (not XCode!), and it sticks these lines at the top of my files.

    Is there some place where __MyCompanyName__ is defined? (Or not defined, in my case?) In PB, or in OSX ? I don't see it either place... Thx.

    PS: I guess it might even be a SETENV in Unix?!?
     
  2. HexMonkey Administrator

    HexMonkey

    Staff Member

    Joined:
    Feb 5, 2004
    Location:
    New Zealand
    #2
    Type the following into Terminal:
    Code:
    defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = "New company name";}'
    It's documented here.
     
  3. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #3
    I forget for how long now but it can be set from within (at least the latest 2 or 3 versions of) Xcode.

    • From any open project select "Edit Project Settings" from the "Project" menu.
    • In the resulting "Project <project name> Info" window select the "Info" view-tab control.
    • Place the name you wish 'ORGANIZATIONNAME' to substitute in the "Organization Name" field near the bottom left corner.
    With subsequent use "New File…" your set name will appear within any new source/header files added to your project.
     
  4. zeppenwolf thread starter macrumors regular

    zeppenwolf

    Joined:
    Nov 17, 2009
    #4
    Ok, thanks I got it, although I'm using ProjectBuilder, but substituting 'com.apple.ProjectBuilder' into the above humongo defaults thing worked. Yay!
     
  5. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #5
    i still think the documented, official way of changing these comments is bit much. you can read my preferred, easier way of solving this issue on this thread.
     

Share This Page