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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to