I have a bundle defined as a document type for an app. When I build one of these bundles, and double-click it, it opens in my app. All well and good. Except the following.

1) I have an icns file in my bundle, and have the CFBundleIconFile key in the info.plist in the bundle set to the name of the icon. The icns file is in the correct location in the bundle. But the bundle does not display the icon. It justuses the generic OS icon.

2) I have the CFBundleIdentifier key in the info.plist in the bundle set to a value. Yet when I run mdls on the bundle directory, kMDItemContentType still shows as "public.foder" instead of the bundle identifier.

3) in my main application I have CFBundleTypeExtensions in the Info.plist set to my bundles extension. This works. However, if I instead use LSItemContentTypes, and set it to the same value as CFBundleIdentifier from the bundle, the bundle shows as a standard folder and double-clicking it does not open it in my app.

I'm using OS X 10.6. I've done a good deal of searching, and I believe I'm using these values correctly. I'm wanting to use LSItemContentTypes to be able to find my bundles via SpotLight (ala the CoreRecipes sample app).

        Anyone want to point out what I'm doing wrong?  Any help appreciated.

        Thanks.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to