Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

match311

macrumors member
Original poster
Jun 16, 2007
71
0
I'm a just learning how to use the SDK and writing some simple code, then I noticed every new file I make Apple inserts my name,date and copyright. like this:

//
// MyViewController.m
// HelloWorld
//
// Created by Me on 5/9/09.
// Copyright 2009 CompanyName. All rights reserved.
//

My problem is, when I downloaded the SDK I set the "CompanyName" to the name of my University. So, I would like to change that so my University does not have copyright of my code. I know I can delete the lines and change it to whatever company name I want, but I would like to know if there is a solution that will change my company from-here-on-out. Then, any new code I write will be properly copyrighted to me, automatically.
 
In Terminal, do this:

Code:
defaults write com.apple.xcode PBXCustomTemplateMacroDefinitions '{ ORGANIZATIONNAME = "John Doe"; }'

(Replace "John Doe" with whatever you want it to say.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.