does anyone know a gnustep example application that builds under
MacOS with gnustep make and that correctly sets up the necessary
plist files (or whatever has to be done) to link file extensions to
application so that a doubleclick on a document file in Finder
automatically lauches the corresponding application?
I have written an app that should act as an editor for *.project
files. The linkage works under MacOSX 10.2 and GNUstep but not on
Leopard. Any idea?
I have found the following file in the application wrapper
pico /Applications/InterfaceBuilder.app/Contents/Info.plist
{
NOTE = "Automatically generated, do not edit!";
NSExecutable = "InterfaceBuilder";
NSMainNibFile = "";
GSMainMarkupFile = "";
CFBundleIconFile = "InterfaceBuilder.icns";
NSPrincipalClass = "NSApplication";
}
I modified that as follows
{
NOTE = "Automatically generated, do not edit!";
NSExecutable = "InterfaceBuilder";
NSMainNibFile = "";
GSMainMarkupFile = "";
CFBundleIconFile = "InterfaceBuilder.icns";
NSPrincipalClass = "NSApplication";
NSRole = "Editor";
NSTypes = (
{
NSUnixExtensions = ( "smib" );
NSIcon = "nibfile.tiff";
}
);
}
and Finder.app immediately had the connection between smib files and
InterfaceBuilder.app. Great!