Re: __MyCompanyName__
Re: __MyCompanyName__
- Subject: Re: __MyCompanyName__
- From: Joe Muscara <email@hidden>
- Date: Mon, 1 Oct 2001 15:59:35 -0500
Sorry for the confusion.
Here's what is in my user defaults.
{CURRENTYEAR = 2001; ORGANIZATIONNAME = "Termite Terrace Studios"; }
When I launch PB and create a new Cocoa Document-based Application, the
lines in both MyDocument.h and .m that "come with" the project result in
the following (copy/paste from a new test project file):
// +PROJECTNAME;
//
// Created by +FULLUSERNAME; on +DATE;.
// Copyright (c) +CURRENTYEAR; +ORGANIZATIONNAME;. All rights reserved.
As you can see, the tokens are not replaced. (I hope the double arrow
token markers appear properly in the above snippet immediately to the
left and right of each token name.)
InfoPlist.strings in the same project with the same tokens in the
template works fine, as does creating any new Objective-C files (I
didn't bother with the Java file templates nor the non-Cocoa ones).
Joe
On Monday, October 1, 2001, at 03:37 PM, Scott Tooker wrote:
I'm a little confused. So you set this in your user defaults (via
defaults or modifiying the com.apple.ProjectBuilder preference file
with PropertyListEditor), re-launched Project Builder and new .h and/or
.m files were not given the new macro value, but other new files were?
What did you place in your user defaults (i.e. what is the output of
'defaults read com.apple.ProjectBuilder
PBXCustomTemplateMacroDefinitions'
)?
As far as IB goes, I have no idea.
Scott
On Monday, October 1, 2001, at 12:43 PM, Joe Muscara wrote:
Thanks, Scott. That worked a treat, even with the InfoPlist.strings
file.
However, it didn't seem to do anything for MyDocument.h + .m. Any
suggestions? Also, is there any way to get at the files IB generates
in a similar fashion?
Thanks,
Joe
On Monday, October 1, 2001, at 12:32 PM, Scott Tooker wrote:
Copied from a co-worker's post:
As of 10.1, you should be able to set the user default
PBXCustomTemplateMacroDefinitions to override template macro values
like +
ORGANIZATIONNAME; to be your own value rather than __MyCompanyName__
or whatever a macro's default value is. You should be able to define
your own macros in this way, too.
Scott Tooker
QA & Integration - Project Builder
Mac OS X Development Environment