• 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 20:23:37 -0600

Ok Adam.

I took your example and got this:

http://highrolls.net/Samples/Info.plist

Please comment, as my qlgen is not called.

And I did mdls and got this:

http://highrolls.net/Samples/mdls.txt

which shows a different kMDItemContentType.

Am I even getting close?



On Jul 13, 2009, at 7:50 PM, Adam R. Maxwell wrote:


On Jul 13, 2009, at 6:34 PM, David Blanton wrote:

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?

You need to do two things:

1) declare your type to map .pes files to com.pes.britonleap
2) declare your bundle as QL plugin for com.pes.britonleap

If your earlier post had the entire plist, it looks like you're missing CFBundleDocumentTypes, so there's nothing to associate your plugin with com.pes.britonleap files. Here's a complete example from one of my plugins:

http://code.google.com/p/mactlmgr/source/browse/DVI-qlgenerator/Info.plist

Check `mdls somefile.pes` in Terminal to make sure kMDItemContentType matches your UTI.


_______________________________________________

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


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>)
 >Re: Best 'Cocoa' File Preview (From: David Blanton <email@hidden>)
 >Re: Best 'Cocoa' File Preview (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Networking
  • Next by Date: Re: literal strings - who do they belong to?
  • Previous by thread: Re: Best 'Cocoa' File Preview
  • Next by thread: Re: Best 'Cocoa' File Preview
  • Index(es):
    • Date
    • Thread