Now that I'm using this the right way, I'm having a hard time getting the popup
to use the correct names from the Info.plist. I've edited them recently, and
nothing I do helps (ran "lsregister -v -f /path/to/app.app", ran "touch
/path/to/app.app", launched app from Finder, rebooted). Any ideas?
I'm also confused about which things need to be in the Info.plist these days;
CFBundleDocumentTypes, UTExportedTypeDeclarations, or both. When I make a new
Cocoa doc-based app in Xcode to see what it does, it uses only a
CFBundleDocumentTypes, and inside the only type declared is a
CFBundleTypeExtensions of "zargo" (the type I made up when creating the test
project) and a CFBundleTypeOSTypes of '????'. There is no UTI at all. The
TextEdit project also uses only CFBundleDocumentTypes, but each type declares a
LSItemContentTypes, but no CFBundleTypeOSTypes.
My Info.plist, which was started way before Carbon, has been updated over the
years with the new UTI stuff, so maybe it's out of date with how it should be
in 10.6 and above. I'll paste in just one entry from both keys. Note that the
extension, OSType, type name, and icon are in both sections. How would I
correct this?
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mus</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>DocFIN3.icns</string>
<key>CFBundleTypeName</key>
<string>Finale Notation File</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>FIN3</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>MusicDocument</string>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Finale Notation File</string>
<key>UTTypeIdentifier</key>
<string>com.makemusic.mus</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>FIN3</string>
<key>public.filename-extension</key>
<array>
<string>mus</string>
</array>
</dict>
<key>UTTypeIconFile</key>
<string>DocFIN3.icns</string>
</dict>
</array>
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]