Hi all,

how can I make my app to start automatically and open a document file when I doubleclick on a file with a specific extension, e.g. *.project? I have a file CustomInfo.plist in the project directory and listed all document types.

CFBundleIconFile = "ProjectBuilder.icns";
NSTypes = (
     {
        NSName = "h";
        NSHumanReadableName = "Header File";
        NSUnixExtensions = ("h");
        NSDOSExtensions = ("h");
        NSRole = Editor;
        NSIcon = "hfile.tiff";
      },
     {
        NSName = "c";
        NSHumanReadableName = "c File";
        NSUnixExtensions = ("c");
        NSDOSExtensions = ("c");
        NSRole = Editor;
        NSIcon = "cfile.tiff";
      },
     {
        NSName = "m";
        NSHumanReadableName = "m File";
        NSUnixExtensions = ("m");
        NSDOSExtensions = ("m");
        NSRole = Editor;
        NSIcon = "mfile.tiff";
      },
     {
        NSName = "sproject";
        NSHumanReadableName = "sproject File";
        NSUnixExtensions = ("sproject");
        NSDOSExtensions = ("sproject");
        NSRole = Editor;
        NSIcon = "projfile.tiff";
      },
     {
        NSName = "project";
        NSHumanReadableName = "project File";
        NSUnixExtensions = ("project");
        NSDOSExtensions = ("project");
        NSRole = Editor;
        NSIcon = "projfile.tiff";
      }
    );

But NSWorkspace does not seem to take care. Any ideas?

Thanks a lot!

Regards,

  Andreas



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to