On Feb 11, 2011, at 8:04 PM, davel...@mac.com wrote:

> I'm working on a document-based app for the Mac App Store. The data file I'm 
> reading/writing is actual a Sqlite database file. I've been able to get it to 
> work with the following in my info.plist file (although for this email I've 
> used appname in place of the actual appname and file extension I'm using.
> 
>       <key>CFBundleDocumentTypes</key>
>        <array>
>                <dict>
>                        <key>CFBundleTypeExtensions</key>
>                        <array>
>                                <string>appname</string>
>                        </array>
>                        <key>CFBundleTypeIconFile</key>
>                        <string>AppName.icns</string>
>                        <key>CFBundleTypeName</key>
>                        <string>AppName Document</string>
>                        <key>CFBundleTypeRole</key>
>                        <string>Editor</string>
>                        <key>NSDocumentClass</key>
>                        <string>MyDocument</string>
>                </dict>
>        </array>
> 
>        <key>UTExportedTypeDeclarations</key>
>        <array>
>                <dict>
>                        <key>UTTypeDescription</key>
>                        <string>AppName document</string>
>                        <key>UTTypeIdentifier</key>
>                        <string>com.dave256apps.appname</string>
>                        <key>UTTypeTagSpecification</key>
>                        <dict>
>                                <key>public.filename-extension</key>
>                                <string>appname</string>
>                        </dict>
>                </dict>
>        </array>
> 
> It appears CFBundleTypeExtensions is deprecated and I should be using 
> LSItemContentTypes, but I can't get it to work with that. What exactly should 
> the plist file look like to work with that?
> 
> Also, will making these changes prevent me from opening documents I've 
> already created with it set up as above? If so, is there a way around it.
> 
> Thanks in advance,
> Dave


I'm not certain what was wrong, but I deleted the document information from the 
Xcode project and re-added it and everything seems to be working ok now with 
LSItemContentTypes.

Dave

_______________________________________________

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