Re: Document-based application issue
Re: Document-based application issue
- Subject: Re: Document-based application issue
- From: Patrick Mau <email@hidden>
- Date: Wed, 30 Dec 2009 14:44:49 +0100
Hallo Mac Lancer
I have recently developed my first Cocoa Aplication creating custom
ducumen bundles. What I did was to not only registering the document types
but also export the file types in case they are not yet registered.
This was my first app that supports a quicklook plugin for
previes and thumbnails in Finder. This is why I exported the UTT's.
In my QL plugin I added the type to the supported documents info.
To accomplish this I have added the following to my applications "Info.plist" file:
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<!-- CHANGE: My files are bundles, yours are plain files -->
<string>com.apple.package</string>
</array>
<key>UTTypeDescription</key>
<!-- CHANGE: You description of the type -->
<string>Portfolio</string>
<key>UTTypeIconFile</key>
<string>Icon.icns</string>
<key>UTTypeIdentifier</key>
<!-- CHANGE: This was my real reverse DNS identifier for the filetype -->
<string>com.yourcompany.filetype</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>portfolio</string>
</array>
</dict>
</dict>
</array>
Th
On 29.12.2009, at 19:53, Mac Lancer wrote:
> Hello, Gentlemen,
>
> I’m working on a Cocoa application that is intended to open documents in
> custom format. It is a document-based application and it should open files
> with aeep/aeew extensions. The problem is that on some Mac computers after
> installation aeep/aeew files do not open when the user double-clicks them.
> My thought was that the aeep/aeew file extensions are not registered for
> some reason during the installation. I even tried adding 'lsregister' call
> to the postflight script but with no luck – the files still do not open.
> Unfortunately, I do not have much information about configurations of these
> macs as this behavior is reported by end users. Does anyone know what can be
> the reason for such behavior? Am I missing something? Some additional
> information below:
>
> 1. The application is installed to the folder /Library/Application
> Support/AnimalsandEarth/A&E Photo.app
> 2. Info.plist file contains the following dictionary:
> <key>CFBundleDocumentTypes</key>
> <array>
> <dict>
> <key>CFBundleTypeExtensions</key>
> <array>
> <string>aeep</string>
> <string>aeew</string>
> <string>jpg</string>
> <string>jpeg</string>
> <string>png</string>
> <string>gif</string>
> <string>bmp</string>
> </array>
> <key>CFBundleTypeIconFile</key>
> <string></string>
> <key>CFBundleTypeName</key>
> <string>AnimalsAndEarthPhoto</string>
> <key>CFBundleTypeOSTypes</key>
> <array>
> <string>????</string>
> </array>
> <key>CFBundleTypeRole</key>
> <string>Viewer</string>
> <key>NSDocumentClass</key>
> <string>MyDocument</string>
> </dict>
> </array>
> 3. The URL to the installer:
> http://www.animalsandearth.com/macapp/animalsandearth.dmg
> 4. Some aeep files can be found in the ~/Pictures/AnimalsandEarth Photos/
> folder
>
> Any help would be appreciated.
>
> Thanks,
> AE
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden