• 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: Associate icon with file ext. / quick look
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Associate icon with file ext. / quick look


  • Subject: Re: Associate icon with file ext. / quick look
  • From: Seth Willits <email@hidden>
  • Date: Wed, 17 Oct 2012 19:07:56 -0700

On Oct 17, 2012, at 4:38 AM, Jean Suisse wrote:

> The app that collects and stores the data is not the same as the one that is used to view the data (third-party text editor).
> I have found how to tell launch services to open the files with the third-party text editor, but I can't find how to associate the icon of my app with all the files extensions I use. How can I do that using cocoa or a shell script ? – this is my first question.

The default handling application for a file type is the one that must contain the icon for the file type. If you've set the third party app to be the one to handle the file (when it's double-clicked on in Finder), then your own app cannot be the one supplying the icon. You can supply a custom QuickLook preview generator, although I think if it's bundled in your app it might work unless your app owns those files?


> Secondly, how can I tell quick look to preview the-said files just like it would any other text file ?

I believe if you specify that the UTI of the custom file types descends from the plain text UTI type, it'll just work.


--
Seth Willits






_______________________________________________

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: 
 >Associate icon with file ext. / quick look (From: Jean Suisse <email@hidden>)

  • Prev by Date: gesture recognizers and nil-targeted actions
  • Next by Date: preview image is not correctly showing the exact frame image after saving the QTMovie to a file
  • Previous by thread: Associate icon with file ext. / quick look
  • Next by thread: Re: Associate icon with file ext. / quick look
  • Index(es):
    • Date
    • Thread