• 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: Joe Muscara <email@hidden>
  • Date: Mon, 1 Oct 2001 10:43:23 -0500

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


  • Follow-Ups:
    • Re: __MyCompanyName__
      • From: Scott Tooker <email@hidden>
    • Re: __MyCompanyName__
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Intelligent clipboard pasting
  • Next by Date: Re: NSScrollView and general IB annoyance
  • Previous by thread: Re: Intelligent clipboard pasting
  • Next by thread: Re: __MyCompanyName__
  • Index(es):
    • Date
    • Thread