Re: Associate icon with file ext. / quick look
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