Hi all,
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!
However, this file is overwritten and reverted to its original state
when I do "make install". What file do I have to create in the
project directory and what do I have to add to GNUmakefile to let
gnustep make generate Info.plist as indicted above?