adding an icon for a new file type
adding an icon for a new file type
- Subject: adding an icon for a new file type
- From: James <email@hidden>
- Date: Thu, 10 Aug 2006 15:13:39 -0400
I recently started programming in D, and I downloaded and installed a
d.pblangspec and d.pbfilespec to give me syntax hightlining, etc.,
but then I wanted to add an icon for .d files, so they woulnd't just
be the plain white document icon.
I have the icon made and called it dfile.icns and put it in Xcode.app/
Resources/. Then I edited the Info.plist in Xcode.app/ and added
this dictionary under the array CFBundleDocumentTypes array (the
dictionary is nnumber 35 if it helps):
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>d</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>dfile</string>
<key>CFBundleTypeName</key>
<string>D Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<string>Yes</string>
<key>NSDocumentClass</key>
<string>PBXSourceFileDocument</string>
</dict>
But I still don't get an icon for the files with the extension d, nor
do I get the description "D Source File", when I get the info for the
file. Am I missing something, or is it impossible to add icons for
new file types with Xcode, if so, is there an alternative way?
Thanks in advance.
_______________________________________________
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