TemplateInfo.plist MacroExpand Bug
TemplateInfo.plist MacroExpand Bug
- Subject: TemplateInfo.plist MacroExpand Bug
- From: Sean Todd <email@hidden>
- Date: Thu, 8 May 2008 12:06:41 -0500
I am using Xcode 3.0 and am trying to setup a custom project template
for Core Data Doc-based App with Spotlight importer. Everything is
working well except for macro expansion of the MyDocument.nib sub-
files. My TemplateInfo.plist file contains the following:
FilesToRename = {
"CocoaApp_Prefix.pch" = "«PROJECTNAMEASIDENTIFIER»_Prefix.pch";
"MyDocument.h" = "«PROJECTNAMEASIDENTIFIER»Document.h";
"MyDocument.m" = "«PROJECTNAMEASIDENTIFIER»Document.m";
"MyDocument.xcdatamodel" =
"«PROJECTNAMEASIDENTIFIER»Document.xcdatamodel";
"English.lproj/MyDocument.nib" =
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib";
"AppleScriptInfo.sdef" = "«PROJECTNAMEASIDENTIFIER».sdef";
};
FilesToMacroExpand = (
"«PROJECTNAMEASIDENTIFIER»_Prefix.pch",
"Info.plist",
"English.lproj/InfoPlist.strings",
"English.lproj/MainMenu.nib/keyedobjects.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/classes.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/
keyedobjects.nib",
"«PROJECTNAMEASIDENTIFIER»Document.h",
"«PROJECTNAMEASIDENTIFIER»Document.m",
"main.m",
"Importer/main.c",
"Importer/GetMetadataForFile.c",
"Importer/Importer-Info.plist",
"«PROJECTNAMEASIDENTIFIER».sdef",
);
The renaming works and all of the macro expansion occurs except for:
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/classes.nib",
"English.lproj/«PROJECTNAMEASIDENTIFIER»Document.nib/
keyedobjects.nib",
These 2 files each have one string item to be expanded:
«PROJECTNAMEASIDENTIFIER»Document. Since macro expansion works for the
keyedobjects.nib file in the MainMenu.nib package, there should be no
reason why it wouldn't work with the document nib. I have checked that
the file encodings are all correct.
Has anyone else seen this? Is there some undocumented limitation to
the FilesToMacroExpand functionality? Or, is this a bug?
Thanks
_______________________________________________
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