Hi all,
I'm bumping this again because I think something isn't working correctly and I have some info on what it might be.
Try this...
1) Use the Introjucer to select file icons and some document extensions
2) Save and open the project in XCode
3) Look at [Your-Project-Name]->Info->Document Types
4) You should see your file types listed, but, for me at least, under 'Icon' it says 'None'
5) If I click on the dropdown and choose my icon, then suddenly everything works and my document types have the right icon
I did a diff on the plist file produced for my app for both the situation when I don't select the icon in the list, and the situation where I do. The only key that is added is:
<key>CFBundleTypeIconFile</key>
<string>Icon</string>
which is in the dict associated with the extension.
If this is just happening to me, then it isn't clear what I'm doing to trigger it. Any thoughts?
UPDATE: If I change:
addPlistDictionaryKey (dict2, "CFBundleTypeName", ex);
addPlistDictionaryKey (dict2, "CFBundleTypeRole", "Editor");
addPlistDictionaryKey (dict2, "NSPersistentStoreTypeKey", "XML");
to
addPlistDictionaryKey (dict2, "CFBundleTypeName", ex);
addPlistDictionaryKey (dict2, "CFBundleTypeRole", "Editor");
addPlistDictionaryKey (dict2, "CFBundleTypeIconFile", "Icon");
addPlistDictionaryKey (dict2, "NSPersistentStoreTypeKey", "XML");
in the Introjucer project file jucer_ProjectExport_XCode.h then it works... (this effectively adds the correct line in the plist to make the icon file associated with the file types)
Thanks,
Adam