• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best 'Cocoa' File Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best 'Cocoa' File Preview


  • Subject: Re: Best 'Cocoa' File Preview
  • From: David Blanton <email@hidden>
  • Date: Mon, 13 Jul 2009 19:34:45 -0600

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 (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


  • Follow-Ups:
    • Re: Best 'Cocoa' File Preview
      • From: Julien Jalon <email@hidden>
    • Re: Best 'Cocoa' File Preview
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: Best 'Cocoa' File Preview
      • From: Graham Cox <email@hidden>
References: 
 >Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: Graham Cox <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: Julien Jalon <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Best 'Cocoa' File Preview (From: Julien Jalon <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: [iPhone] Network connection between 2 iPhones
  • Next by Date: Re: Best 'Cocoa' File Preview
  • Previous by thread: Re: Best 'Cocoa' File Preview
  • Next by thread: Re: Best 'Cocoa' File Preview
  • Index(es):
    • Date
    • Thread