Xcode file template with groups

Hey,


I'm attempting to create a File Template that contains folders. Take the structure below as an example


MyFileTemplete.xctemplate

TopLevelFolder

SecondLevelFolder

- class

SecondLevelFolder

ThirdLevelFolder

-class


If I just setup a template and add my folders and classes it works but when it adds to the project it addes them as File Referance(blue folder icon).


Is there any way to add the folders as a group?


EDIT: I'm looking for a way simialar to the project template where you use Definitions and node keys to create groups. This doesn't seem to translate over to the file template.


<key>Definitions</key>
  <dict>
      <key>hello.h</key>
      <dict>
         <key>Group</key>
         <string>Supporting Files</string>
      </dict>
</dict>


BooRanger

Replies

Note that blue indicates a Finder folder...groups are yellow and are symlinks, not Finder folders.


How difficult would it be for you to edit your template manually?

Add a Comment

was you able to do it?