• 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
Strange Info.plist problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Info.plist problem


  • Subject: Strange Info.plist problem
  • From: Mac-arena the Bored Zo <email@hidden>
  • Date: Mon, 30 Jan 2006 05:38:22 -0800

my app's documents do not get my app's icon for them; they have the blank document icon instead. Finder identifies them as simply 'BZSoundboard.app Document'. the correct type name is 'BZ Soundboard document'.

the document files I'm testing with are test.sboard and test2.sboard. the second of these has a file type of 'SBRD' and a creator type of 'BZSB' (copied and pasted from launch -f).

the app's icon appears correctly. the document icon file exists in the app bundle (Contents/Resources/soundboard_document_icon.icns).

I tried quitting Finder, killingall -HUP Dock, and logging out and back in. no effect.

finally, the Info.plist file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>sboard</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>soundboard_document_icon</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/x-soundboard</string>
</array>
<key>CFBundleTypeName</key>
<string>BZ Soundboard document</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>SBRD</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>org.boredzo.soundboard.soundboard</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSDocumentClass</key>
<string>SBDocument</string>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>org.boredzo.soundboard.soundboard</string>
<key>UTTypeDescription</key>
<string>BZ Soundboard document</string>
<key>UTTypeIconFile</key>
<string>soundboard_document_icon.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<!--this used to say com.apple.xml-property-list, but that is only mentioned in one comment in the LS headers, not documented anywhere. so I switched, on the possibility that that was the problem. no change.-->
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SBRD</string>
<key>public.filename-extension</key>
<array>
<string>sboard</string>
</array>
<key>public.mime-type</key>
<string>application/x-soundboard</string>
</dict>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>BZSoundboard</string>
<key>CFBundleIconFile</key>
<string>nine_sound_buttons</string>
<key>CFBundleIdentifier</key>
<string>org.boredzo.soundboard</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>BZSB</string>
<key>CFBundleVersion</key>
<string>0.2</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
_____________________________________________
\ Mac-arena the Bored Zo / email@hidden
PGP public key ID: 7AB26BAD (since 2006-01-01)



Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Multiple text views
  • Next by Date: Re: How to Publish My Application Meeting details to iCal and also to .Mac
  • Previous by thread: Re: Multiple text views
  • Next by thread: How to deal with Java Script in None-GUI applications?
  • Index(es):
    • Date
    • Thread