• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
adding an icon for a new file type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: dyld crash on my intel version of my application
  • Next by Date: Re: linker error with Xcode 2.4
  • Previous by thread: Re: dyld crash on my intel version of my application
  • Next by thread: Need 10.2 C compiler
  • Index(es):
    • Date
    • Thread