Charles,

that is clear now.

When browsing  through a directory, I saw GNUmakefile.
How can an application indicate it will open a file without an extension?

Thanks again,

Edwin

2014-10-29 21:52 GMT+01:00 Charles Philip Chan <cpc...@bell.net>:

> On 29 Oct 2014, eanc...@gmail.com wrote:
>
> Hi Edwin:
>
> > So it is not I that choose an application, it is the application that
> > decides the file types it can open.
> > Is there a way to tell what extensions an editor is handling?
>
> Yes, this info is in the Resources/Info-gnustep.plist of the app
> wrapper. For example this the one that I made for Emacs:
>
>
> {
>   NSExecutable = "Emacs";
>   NSRole = "Editor";
>   NSIcon = "Emacs.tiff";
>         XAppWrapper = YES;
>   NSTypes = (
>     {
>       NSUnixExtensions = ( "h" );
>       NSIcon = "FileIcon_.h.tiff";
>     },
>     {
>       NSUnixExtensions = ( "cpp" );
>       NSIcon = "FileIcon_.cpp.tiff";
>     },
>     {
>       NSUnixExtensions = ( "php" );
>       NSIcon = "FileIcon_.php.tiff";
>     },
>     {
>       NSUnixExtensions = ( "pl" );
>       NSIcon = "FileIcon_.pl.tiff";
>     },
>     {
>       NSUnixExtensions = ( "py" );
>       NSIcon = "FileIcon_.py.tiff";
>     },
>     {
>       NSUnixExtensions = ( "java" );
>       NSIcon = "FileIcon_.java.tiff";
>     },
>     {
>       NSUnixExtensions = ( "sh" );
>       NSIcon = "FileIcon_.sh.tiff";
>     },
>     {
>       NSUnixExtensions = ( "m" );
>       NSIcon = "FileIcon_.m.tiff";
>     },
>     {
>       NSUnixExtensions = ( "c" );
>       NSIcon = "FileIcon_.c.tiff";
>     },
>     {
>       NSUnixExtensions = ( "html", "htm", "xhtml" );
>       NSIcon = "FileIcon_.html.tiff";
>     },
>     {
>       NSUnixExtensions = ( "org" );
>       NSIcon = "FileIcon_.org.tiff";
>     },
>     {
>       NSUnixExtensions = ( "txt", "text", "el" );
>       NSIcon = "FileIcon_.txt.tiff";
>     }
>   );
> }
>
>
> Charles
>
> --
> I've run DOOM more in the last few days than I have the last few
> months.  I just love debugging ;-)
> (Linus Torvalds)
>
>
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to