• 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: Finlay Dobbie <email@hidden>
  • Date: Sun, 30 Sep 2001 21:51:53 +0100

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


References: 
 >__MyCompanyName__ (From: Dustin Mierau <email@hidden>)

  • Prev by Date: Re: Does cocoa just leak?
  • Next by Date: Re: NSScrollView and general IB annoyance
  • Previous by thread: __MyCompanyName__
  • Next by thread: Odd stuff with Cocoa-Java
  • Index(es):
    • Date
    • Thread