Maybe I should reformulate  my question.

I want the Finder to call my QLGenerator whenever it sees a file of type '.pes'.


Can someone show me the required info.plist entries?


This does not get my generator called:


<key>UTExportedTypeDeclarations</key>
  <array>
    <dict>
      <key>UTTypeIdentifier</key>
      <string>com.pes.britonleap</string>

      <key>UTTypeDescription</key>
      <string>Brother/Babylock/Bernina Home Embroidery Format</string>

      <key>UTTypeConformsTo</key>
      <array>
        <string>public.item</string>
      </array>

      <key>UTTypeTagSpecification</key>
      <dict>
        <key>public.filename-extension</key>
        <array>
          <string>pes</string>
        </array>
      </dict>
    </dict>
  </array>        


Furthermore why so convoluted and difficult? I should be able to say call me for files of type'.pes' and be done with it.

Any help is appreciated.


On Jul 13, 2009, at 6:33 PM, Adam R. Maxwell wrote:


On Jul 13, 2009, at 1:02 PM, David Blanton wrote:

Here is my info.plist I am trying to get a callback for files ending in .pes

        <key>UTExportedTypeDeclarations</key>
        <array>
                <dict>
                        <key>UTTypeIdentifier</key>
                        <string>com.britonleap.pes</string>
                        <key>UTTypeDescription</key>
                        <string>Brother/Babylock/Bernina Home Embroidery 
Format</string>
                </dict>
        </array>

Compare with the example at http://developer.apple.com/macosx/uniformtypeidentifiers.html which is the first hit on the search that Julien suggested. You're missing a number of key/value pairs, notably UTTypeTagSpecification and UTTypeConformsTo.




_______________________________________________

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