Xcode template - Image copying problem and enclosing folder on disk issue
Xcode template - Image copying problem and enclosing folder on disk issue
- Subject: Xcode template - Image copying problem and enclosing folder on disk issue
- From: René van Amerongen <email@hidden>
- Date: Fri, 29 Sep 2006 17:00:02 +0200
I have a problem with a self-made xcode template.
With this template I create a folder ( group in xcode ) where my
source files are created.
In this group folder there is a documentation folder ( real folder on
disk ) with html files.
Inside this Documentation folder there is a folder ( real folder on
disk ) with the images.
For the first folder I use EnclosingGroupName - creates the group
folder.
Question 1 - Is there something like 'EnclosingFolderName' to create
a real folder on disk. I would like to have the code also on disk
inside a folder.
I guess I can move everything a deeper level using a empty file
like I do now, but it looks not so nice.
Question 2 - I do have images inside my template used in the html
files. They are copied only half, at least the size is half from what
they should be. The finder shows that they are damaged. If I copy
them by hand into the generated images folder then looks fine in the
html files. I did try it with files with jpg, tif and gif extensions.
Question 3 - where can I read what template.plist items exists.
Question 4 - Did you know that when you type the template description
text in a editor and copy the text back into the plist, that the
returns and tab etc are preserved? Nice!
I did create a sample template to show what go wrong.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>READ THIS!!!!
An Objective-C class Outline file set. Type the name of the Outline
controller without 'Controller' as text!
This set contains a:
Outline Controller [hm]
Outline Controller category [m]
NSOutlineView subclass [hm]
NSOutlineView DataSource delegate [hm]
NSOutlineView delegate [hm]
Blah blah
</string>
<key>EnclosingGroupName</key>
<string>%@</string>
<key>FileToDisplay</key>
<string>%@Docs/%1$@.html</string>
<key>FilesToRename</key>
<dict>
<key>%@.m</key>
<string>%@_Category.m</string>
</dict>
<key>ImplicitCounterpartTemplateFiles</key>
<dict>
<key>OutlineView.h</key>
<string>%@_Controller.h</string>
<key>OutlineView.m</key>
<string>%@_Controller.m</string>
<key>OutlineView.wo</key>
<string>%@Docs</string>
<key>OutlineView_Category.m</key>
<string>%@.m</string>
<key>OutlineView_DataSource.h</key>
<string>%@_DataSource.h</string>
<key>OutlineView_DataSource.m</key>
<string>%@_DataSource.m</string>
<key>OutlineView_SubClass.h</key>
<string>%@_SubClass.h</string>
<key>OutlineView_SubClass.m</key>
<string>%@_SubClass.m</string>
</dict>
<key>ImplicitExtraTemplateFiles</key>
<dict>
<key>OutlineView.html</key>
<string>%@Docs/%1$@.html</string>
<key>OutlineView.wo</key>
<string>%@Docs/Images</string>
<key>OutlineView_Category.html</key>
<string>%@Docs/%1$@_Category.html</string>
<key>OutlineView_DataSource.html</key>
<string>%@Docs/%1$@_DataSource.html</string>
<key>OutlineView_SubClass.html</key>
<string>%@Docs/%1$@_SubClass.html</string>
<key>icon_library_l.gif</key>
<string>%@Docs/images/Icon_library_l.gif</string>
</dict>
</dict>
</plist>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden