Re: How do you create your own project templates?
Re: How do you create your own project templates?
- Subject: Re: How do you create your own project templates?
- From: Shaun Roe <email@hidden>
- Date: Thu, 12 Aug 2004 10:19:41 +0200
- Keywords: CERN SpamKiller Note: -50 Charset: west-latin
I put this on another list previously:
From: email@hidden
Subject: Re: Xcode Template projects
Date: 2 August 2004 16:40:06 GMT+02:00
To: email@hidden
Aplogies; it seems that link is not visible externally. I hope you can
read the following html:
Introduction
This topic is intended to hold various clues about both running and
developing with Athena and OSX.
Customising XCode
This will explain how to create customized project templates in XCode.
Project templates may contain a particular predefined directory
structure, skeleton code and build rules etc.
Where are project templates?
On opening XCode, it looks in the directories
~/Library/Application Support/Apple/Developer Tools (1)
and
/Library/Application Support/Apple/Developer Tools (2)
the directory tree (1) may not exist yet; in which case you should
create it, copying the model of (2) which comes with Xcode.
You could, for example create an additional directory structure:
~/Library/Application Support/Apple/Developer Tools/Project
Templates/Athena/AlgTool
and copy the template from
/Library/Application Support/Apple/Developer Tools/Project
Templates/Tool/C++ Tool
to this directory as a starting point. You can then open the template
in XCode, make changes, and save it back. If you do this, you'll notice
some directories/ files are called +PROJECTNAME;, and these take on the
title of the project when you create one from the template. The symbols
on each side of PROJECTNAME are achieved by alt-\ and alt-shift-\
respectively.
Filenames and automatic variables such as +PROJECTNAME; embedded in
those files will only take on the final project name if the
TemplateInfo.plist of the .pbproj bundle is edited.
Go to the .pbproj file and ctrl-click to bring up a local menu and
select "Show Package Contents". In the resulting directory, open the
TemplateInfo.plist by double clicking and add new entries as shown in
the screen shot attached. The file names in the final project will be
replaced by the project name, and the variables inside those files will
also be expanded.
Additional automatic variables like the PROJECTNAME can be found here:
http://www.cocoadev.com/index.pl?XcodeProjectTemplates
Some of these variables, such as +ORGANIZATIONNAME; need to be set by
you. To do this you can change the XCode preferences by editing
~/Library/Preferences/com.apple.Xcode.plist
(double click on the file to open the plist editor) and change the
entries associated with PBXCustomTemplateMacroDefinitions (create one
if it does not exist). Alternatively, you can enter the following
command in the terminal app:
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{
"ORGANIZATIONNAME" = "My Company";}'
On 2 Aug 2004, at 16:15, Shaun Roe wrote:
> see the following:
>
> https://uimon.cern.ch/twiki/bin/view/Atlas/AthenaWithOSX
>
> On 20 May 2004, at 16:27, Jonathan Johnson wrote:
>
>> Is there a way to create a project that shows up in the New Project
>> dialog? I have a template project that I'd really like to be able to
>> reuse, but can't seem to figure out where to put it.
>>
>> Thanks,
>> Jon
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> email@hidden
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>
> _______________________________________________
> MacOSX-dev mailing list
> email@hidden
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
On 12 Aug 2004, at 09:14, Sunrise Ltd wrote:
> Hi
>
> I have finished an assistant application, a configuration
> tool like Apple's Setup Assistants. It is going to be a
> kind of blueprint for many more such assistants. When I
> asked around what was the best method to clone a new Xcode
> project from an existing one, the response that seemed
> most interesting was one that suggested I should consider
> create an Xcode project template.
>
> I have been browsing the documentation for the last three
> or four days and as usual found all kinds of useful things
> I will need for all kinds of unrelated stuff, but I
> couldn't find anything in respect of creating Xcode
> project templates.
>
> Does anybody know where this is hiding or if there is
> indeed nothing, are there any articles, HOWTOs or whatever
> other resources that I could use.
>
> tia
> rgds
> benjk
>
>
> --
> Sunrise Telephone Systems Ltd
> 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya, Shibuya-ku, Tokyo, Japan
>
> __________________________________________________
> GANBARE! NIPPON!
> Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
> http://mail.ganbare-nippon.yahoo.co.jp/
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.