View Full Version : Xcode Code Commenting Question
Caspa
Jan 9, 2004, 01:28 AM
Hi All,
Quick question regarding Xcode.
When I make new files it generates the usual:
/*
* untitled.h
* Project
*
* Created by bla bla on Fri Jan 09 2004.
* Copyright (c) 2004 __MyCompanyName__. All rights reserved.
*
*/
Anybody know how to set what it automatically generates, or at least set your company name? I've look everywhere in preferences, both in Xcode and Project builder.. anyone know?!
thanks :)
robbieduncan
Jan 9, 2004, 02:45 AM
With ProjectBuilder there was a file you could edit to set the whole content. With XCode this does not seem to exist, or at least has moved. You can change the company name: http://www.omnigroup.com/mailman/archive/macosx-dev/2003-November/036939.html
Caspa
Jan 9, 2004, 08:33 PM
grrr can't seem to get it to work..
copy-pasted defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions {ORGANIZATIONNAME = "My Company's Name"; } into terminal (and tried it after su'ing) but gave me: -bash: syntax error near unexpected token `}'
Am I doing something wrong? :confused:
iElvis
Jan 9, 2004, 09:50 PM
I would love to know the answer to this too. I use xcode during school for my java class. I use my iBook while everyone else has to use the school comps (XP + Novell) including the teacher.
robbieduncan
Jan 10, 2004, 08:09 AM
Originally posted by Caspa
grrr can't seem to get it to work..
copy-pasted defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions {ORGANIZATIONNAME = "My Company's Name"; } into terminal (and tried it after su'ing) but gave me: -bash: syntax error near unexpected token `}'
Am I doing something wrong? :confused:
I can't get this to work either! Try opening the file (~Library/Preferences/com.apple.Xcode) in the plist editor and add the definition there instead.
cp21yos
Jan 19, 2004, 10:10 PM
you need to add single quotes:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = "Some Company Name"; }'
Caspa
Jan 20, 2004, 03:10 AM
Originally posted by cp21yos
you need to add single quotes:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = "Some Company Name"; }'
Thanks heaps... worked! :)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.