Custom Project Templates: Tweaking Details
I'm quite excited to be at a point with my game engine where I can start wrapping it up into a nice little package, featuring a static library and a easy-to-use project template. All of the important things are working, but as I tweak the custom project template, I'm frustrated by two details:
- How can you change the project description for a template? You know, the little blurb that shows up in the "Description" box when you create a new project and select an option from the menu. Most online sources seem to imply that adding a "Description" tag to the TemplateInfo.plist options should work, but it doesn't (and yes, I'm restarting XCode). Looking at other projects that have working descriptions doesn't seem to help, either, since I can't find their descriptions anywhere in their files. Anybody else had more luck? (It's worth pointing out that I have no trouble doing the same thing with file templates; it's the project templates that are causing me problems.)
- It's a small thing, but... has anyone been able to change the icon of the actual project option? For example, the "Cocoa Application" and "Quartz Composer" project templates all show up with their own unique icon. I'd like to do the same, but can't find the right option to make it so.
- How can you change the project description for a template? You know, the little blurb that shows up in the "Description" box when you create a new project and select an option from the menu. Most online sources seem to imply that adding a "Description" tag to the TemplateInfo.plist options should work, but it doesn't (and yes, I'm restarting XCode). Looking at other projects that have working descriptions doesn't seem to help, either, since I can't find their descriptions anywhere in their files. Anybody else had more luck? (It's worth pointing out that I have no trouble doing the same thing with file templates; it's the project templates that are causing me problems.)
- It's a small thing, but... has anyone been able to change the icon of the actual project option? For example, the "Cocoa Application" and "Quartz Composer" project templates all show up with their own unique icon. I'd like to do the same, but can't find the right option to make it so.
"Who's John Galt?"
Naturally, after several days of trying to figure this out, I find the answer shortly after I post it on the forum. In hopes that you can avoid my frustration:
The TemplateInfo.plist file, which should have a Description property, goes inside the .xcodeproj package. That doesn't mean you open up the project in XCode and add a TemplateInfo.plist file. It means you right-click on the .xcodeproj file, select "Show Package Contents", and drag the TemplateInfo.plist file into the package, like you would with an .app package.
To create an icon for your template, save the desired .icns as TemplateIcon.icns and drag it into the template package, the same way you did with the .plist file.
Done! Very cool.
The TemplateInfo.plist file, which should have a Description property, goes inside the .xcodeproj package. That doesn't mean you open up the project in XCode and add a TemplateInfo.plist file. It means you right-click on the .xcodeproj file, select "Show Package Contents", and drag the TemplateInfo.plist file into the package, like you would with an .app package.
To create an icon for your template, save the desired .icns as TemplateIcon.icns and drag it into the template package, the same way you did with the .plist file.
Done! Very cool.
"Who's John Galt?"
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Question about Xcode targets and templates | ferum | 1 | 2,939 |
Aug 9, 2006 12:21 PM Last Post: szymczyk |
|
| How to best distribute a game? dmg, zip, etc., and details | funkboy | 12 | 5,543 |
Nov 28, 2005 10:37 PM Last Post: OneSadCookie |
|
| SDL Xcode templates | Taxxodium | 1 | 2,334 |
Sep 26, 2005 12:27 AM Last Post: Volte |
|

