• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: __MyCompanyName__
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __MyCompanyName__


  • Subject: Re: __MyCompanyName__
  • From: Scott Tooker <email@hidden>
  • Date: Mon, 1 Oct 2001 10:32:09 -0700

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.

But, since this is a user default, obviously this is a per-account effect.

Scott

On Monday, October 1, 2001, at 08:43 AM, Joe Muscara wrote:

This is a useful tip, but it doesn't seem to answer the original question,
or at least the intent of the original question, which would be "Is 'ORGANIZATIONNAME' defined somewhere?"

He is asking about the variables used each time a new *class* is created,
not a new project.

Joe


On Sunday, September 30, 2001, at 03:55 PM, Finlay Dobbie wrote:

Date: Sun, 30 Sep 2001 21:51:53 +0100
Subject: Re: __MyCompanyName__
Cc: email@hidden
To: Dustin Mierau <email@hidden>
From: Finlay Dobbie <email@hidden>

On Sunday, September 30, 2001, at 09:43 PM, Dustin Mierau wrote:

Is '__MyCompanyName__' defined somewhere? I would like to change it so
I don't have to change it every time I create a new class. Call me
lazy...

http://www.cocoadev.com/index.pl?TipsAndTricks says:

Re: Project Templates above

Better than changing the apple supplied templates. Create a mirror of
/Developer/ProjectBuilder Extras/ within your home folder and copy the
templates you're interested in changing into it. Rename your versions.
Here is a list of recognized variables which PB will replace

 DATE -- current date (using NSCalendarDate? format "%x")
 DIRECTORY -- full path of directory in which the new file is being
created
 FILENAME -- full file name, exactly as typed by the user
 FILEBASENAME -- file name without extension
 FILEBASENAMEASIDENTIFIER -- same as FILEBASENAME, but mangled to a
legal C-style identifier
 FILEEXTENSION -- extension of file name
 FULLUSERNAME -- full name of the logged-in user
 PROJECTNAME -- name of project in which file is created, "" if no
project
 PROJECTNAMEASIDENTIFIER -- same as PROJECTNAME, but mangled to a
legal C-style identifier
 TIME -- current time (using NSCalendarDate? format "%X")
 USERNAME -- account name of the logged-in user

--DaveHenderson

-- Finlay
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev

Scott Tooker
QA & Integration - Project Builder
Mac OS X Development Environment


  • Follow-Ups:
    • Re: __MyCompanyName__
      • From: Joe Muscara <email@hidden>
References: 
 >Re: __MyCompanyName__ (From: Joe Muscara <email@hidden>)

  • Prev by Date: Re: C++ and Cocoa
  • Next by Date: Re: DVD problems, was: Early thoughts on 10.1
  • Previous by thread: Re: __MyCompanyName__
  • Next by thread: Re: __MyCompanyName__
  • Index(es):
    • Date
    • Thread