On 22 Oct 2012, at 16:54, Sean McBride wrote:

> On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said:
> 
>> My scientific cocoa app (10.6-10.8) records acquired data from devices
>> and store them in human-readable UTF8 text files that have specific
>> extensions (different from .txt). I have two questions related to file
>> extensions, default application, icons and preview in quick look to
>> submit to your expertise.
>> 
>> 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.
>> 
>> Secondly, how can I tell quick look to preview the-said files just like
>> it would any other text file ?
> 
> Jean,
> 
> From the sounds of it, it might be best if you just use ".txt" for your human 
> readable text files.  QuickLook will then generate previews, and the user's 
> preferred text editor will open the file when double clicked.

I believe declaring your file format as conforming to public.plain-text will 
automatically gain that ability too.
_______________________________________________

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